![Samsung S3F84B8 Скачать руководство пользователя страница 144](http://html.mh-extra.com/html/samsung/s3f84b8/s3f84b8_user-manual_347832144.webp)
S3F84B8_UM_REV 1.00
6 INSTRUCTION SET
6-22
6.3.10 BTJRF — BIT TEST, JUMP RELATIVE ON FALSE
BTJRF
dst,src.b
Operation
:
If src(b) is a “0”, then PC
PC + dst.
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.
Flags
:
No flags are affected.
Format
:
Bytes Cycles
Opcode
(Hex)
Addr Mode
dst src
opc
src | b | 0
dst
3
10
37
RA
rb
NOTE:
In the second byte of instruction format, the source address is four bits, the bit address ‘b’ is three bits, and
the LSB address value is one bit in length.
Example
:
Given R1 = 07H:
BTJRF
SKIP,R1.3
PC jumps to SKIP location
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.)