Btjrt — Bit Test, Jump Relative On True - Samsung S3F84B8 User Manual

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

Advertisement

S3F84B8_UM_REV 1.00
6.3.11 BTJRT — BIT TEST, JUMP RELATIVE ON TRUE
dst,src.b
BTJRT
If src(b) is a "1", then PC  PC + dst.
Operation:
The specified bit within the source operand is tested. If the bit is "1", the relative address is added
to the program counter and control passes to the statement whose address is in the PC;
otherwise, the instruction following the BTJRT 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:
BTJRT SKIP,R1.1
If the value of working register R1 is 07H (00000111B), the statement "BTJRT SKIP,R1.1" tests
bit one in the source register (R1). Since the bit is "1", the relative address is added to the PC,
which then 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 | 1
dst
Bytes
Cycles
3
6-23
6 INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
10
37
src
RA
rb

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents