Btjrf — Bit Test, Jump Relative On False - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
6.3.10 BTJRF — BIT TEST, JUMP RELATIVE ON FALSE
dst,src.b
BTJRF
If src(b) is a "0", then PC  PC + dst.
Operation:
The specified bit within source operand is tested. If the bit is "0", the relative address is added to
the program counter and control shifts to the statement whose address is now in the PC;
otherwise, the instruction following the BTJRF instruction is executed.
No flags are affected.
Flags:
Format:
opc
In the second byte of instruction format, the source address is four bits, the bit address 'b' is three bits, and
NOTE:
the LSB address value is one bit in length.
Given R1 = 07H:
Example:
BTJRF SKIP,R1.3
If the value of working register R1 is 07H (00000111B), the statement "BTJRF SKIP,R1.3" tests
bit 3. Since R1.3 is "0", the relative address is added to the PC, which jumps to the memory
location pointed to by SKIP. (Note that the memory location must be within the allowed range of +
127 to – 128.)
(NOTE)
src | b | 0
dst
Bytes
Cycles
3
PC jumps to SKIP location
6-22
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
10
37
src
RA
rb

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents