
38
3.1 Guide to This Chapter
Chapter 3 Functions
The following explains the syntax of each jump instruction—JMP, JPMI, JSR, and JSRI by using an actual
example.
(3) Syntax
Indicates the instruction syntax using a symbol.
(a) (b) (c)
(a) Mnemonic JMP
Describes the mnemonic.
(b) Jump distance specifier .length
Describes the distance of jump. If (.length) is omitted in JMP or JSR instruction, the assembler
chooses the optimum specifier. If (.length) is entered, its content is given priority.
The following lists the jump distances that can be specified:
.S 3-bit PC forward relative (+2 to +9)
.B 8-bit PC relative
.W 16-bit PC relative
.A 20-bit absolute
(c) Operand label
Describes the operand.
(d) Shows the jump distance that can be specified in (b).
JuMP
Unconditional jump
JMP (.length) label
S, B, W, A
(d)
[ Syntax ]
JMP (.length) label
JMP
S, B, W, A (Can be specified)
(2)
(3)
(1)
3.2 Functions
Chapter 3 Functions
JMP
[ Instruction Code/Number of Cycles ]
Page=195
Comentarios a estos manuales