ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
57
M8C Instruction Set
4.20
Long Jump
LJMP
Jump, unconditionally, to the unsigned address indicated by the instruction’s argument. The
LJMP
instruction uses a three-byte instruction format to accommodate a full 16-bit argument. The first byte
of the instruction is a full 8-bit opcode.
Instructions
Operation
Opcode
Cycles Bytes
Mnemonic
Argument
LJMP
expr
0x7D
7
3
Conditional
Flags:
CF
ZF
Unaffected.
Unaffected.
Example:
0000
_main:
0000
7D 00 03 [07]
ljmp SubFun
Although in this example a full 16-bit address is not needed for the jump to
SubFun
the listing above shows that the
ljmp
instruction is using a three byte format which
accommodates the 16-bit absolute jump address of
0x0003
.
0003
0003
SubFun:
0003
7D 00 00 [07]
ljmp _main
Note that this instruction is jumping backwards, relative to the current
PC
value,
and the address in the instruction is a positive number (
0x0000
). This is because
the
ljmp
instruction uses an absolute address.
PC
K, 0 k 65535
Содержание PSoC DESIGNER ImageCraft M8C
Страница 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Страница 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Страница 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Страница 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Страница 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Страница 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Страница 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...