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

8-bit cmos microcontrollers
Table of Contents

Advertisement

INSTRUCTION SET
BTJRT
— Bit Test, Jump Relative on True
BTJRT
dst,src.b
If src(b) is a "1", then PC ← PC + dst
Operation:
The specified bit within the source operand is tested. If it is a "1", the relative address is added to
the program counter and control passes to the statement whose address is now in the PC;
otherwise, the instruction following the BTJRT instruction is executed.
Flags:
No flags are affected.
Format:
opc
NOTE: In the second byte of the instruction format, the source address is four bits, the bit address 'b' is
Example:
Given: R1 = 07H:
BTJRT
If working register R1 contains the value 07H (00000111B), the statement "BTJRT SKIP,R1.1"
tests bit one in the source register (R1). Because it is a "1", the relative address is added to the
PC and the PC jumps to the memory location pointed to by the SKIP. (Remember that the
memory location must be within the allowed range of + 127 to – 128.)
6-24
(Note 1)
dst
src | b | 1
three bits, and the LSB address value is one bit in length.
SKIP,R1.1
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X
Bytes
Cycles
Opcode
3
10
Addr Mode
(Hex)
dst
src
37
RA
rb

Advertisement

Table of Contents
loading

This manual is also suitable for:

F8275xF8274xC8278xC8274xF8278x

Table of Contents