SAM47 INSTRUCTION SET KS57C2308/P2308/C2316/P2316
5-64
LDB Load Bit
LDB dst,src.b
LDB dst.b,src
Operation: Operand Operation Summary Bytes Cycles
mema.b,C Load carry bit to a specified memory bit 2 2
memb.@L,C Load carry bit to a specified indirect memory bit 2 2
@H+DA.b,C 2 2
C,mema.b Load memory bit to a specified carry bit 2 2
C,memb.@L Load indirect memory bit to a specified carry bit 2 2
C,@H+DA.b 2 2
Description: The Boolean variable indicated by the first or second operand is copied into the location specified
by the second or first operand. One of the operands must be the carry flag; the other may be any
directly or indirectly addressable bit. The source is unaffected.
Operand Binary Code Operation Notation
mema.b,C *11111100mema.b C
memb.@L,C 11111100memb.7–2 + [L.3–2]. [L.1–0] C
0 1 0 0 a5 a4 a3 a2
@H+DA.b,C 11111100H + [DA.3–0].b (C)
0 0 b1 b0 a3 a2 a1 a0
C,mema.b* 11110100C mema.b
C,memb.@L 11110100C memb.7–2 + [L.3–2] . [L.1–0]
0 1 0 0 a5 a4 a3 a2
C,@H+DA.b 11110100C [H + DA.3–0].b
0 0 b1 b0 a3 a2 a1 a0
Second Byte Bit Addresses
* mema.b 1 0 b1 b0 a3 a2 a1 a0 FB0H–FBFH
1 1 b1 b0 a3 a2 a1 a0 FF0H–FFFH