UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
77
causes a Program Counter jump to occur because bit 5 of Working Register R7 passes
the test for a 1. The next instruction executed after the BTJ is the LD instruction. The
eZ8 CPU assembler automatically calculates the desired displacement value of
01H
,
allowing the Program Counter to skip the one byte HALT instruction and jump to the
NEXT label that identifies the LD instruction address. The flags are unaffected.
NEXT:
This label is not assembled, but used by the assembler to identify
the destination address (the address of the next instruction).
LD r0, @r2
E3 02
Assembly Code
Object Code
BTJ 1, 5, r7, NEXT
F6 D7 01