UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
76
Flags
Attributes
Examples
•
If Working Register R7 contains the value
20H
(00100000B), the BTJ instruction that
begins the following code segment:
does not cause a Program Counter jump to occur because bit 5 of Working Register R7
fails the test for a 0. The next instruction executed after the BTJ is the HALT
instruction. The flags are unaffected.
•
If Working Register R7 contains the value
20H
(00100000B), the BTJ instruction that
begins the following code segment:
C
Unaffected.
Z
Unaffected.
S
Unaffected.
V
Unaffected.
D
Unaffected.
H
Unaffected.
Mnemonic
Polarity, Bit, Source,
Address
Opcode (Hex)
Operand 1
Operand 2
Operand 3
BTJ
p, bit, r2, DA
F6
{p, bit[2:0], r2}
X
—
BTJ
p, bit, @r2, DA
F7
{p, bit[2:0], r2}
X
—
Assembly Code
Object Code
BTJ 0, 5, r7, NEXT
F6 57 01
HALT
7F
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
HALT
7F