Table of Contents

Advertisement

S3C84I8/F84I8/C84I9/F84I9
LDB
— Load Bit
dst,src.b
LDB
dst.b,src
LDB
dst(0) ← src(b)
Operation:
or
dst(b) ← src(0)
The specified bit of the source is loaded into bit zero (LSB) of the destination, or bit zero of the
source is loaded into the specified bit of the destination. No other bits of the destination are
affected. The source is unaffected.
No flags are affected.
Flags:
Format:
opc
opc
NOTE: In the second byte of the instruction format, the destination (or the source) address is four bits,
Given: R0 = 06H and general register 00H = 05H:
Examples:
LDB
LDB
In the first example, the destination working register R0 contains the value 06H and the source
general register 00H the value 05H. The statement "LD R0,00H.2" loads the bit two value of the
00H register into bit zero of the R0 register, leaving the value 07H in the register R0.
In the second example, 00H is the destination register. The statement "LD 00H.0,R0" loads bit
zero of the register R0 to the specified bit (bit zero) of the destination register, leaving 04H in the
general register 00H.
src
dst | b | 0
dst
src | b | 1
the bit address "b" is three bits, and the LSB address value is one bit in length.
R0,00H.2
00H.0,R0
Bytes
Cycles
3
3
R0 = 07H, register 00H = 05H
R0 = 06H, register 00H = 04H
INSTRUCTION SET
Opcode
Addr Mode
(Hex)
dst
6
47
6
47
Rb
src
r0
Rb
r0
6-51

Advertisement

Table of Contents
loading

This manual is also suitable for:

S3c84i9S3f84i8S3f84i9

Table of Contents