S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 30

no-image

S3C72G9

Manufacturer Part Number
S3C72G9
Description
The S3C72G9 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core/ SAM47 (Samsung Arrangeable M
Manufacturer
Samsung semiconductor
Datasheet
   

BAND
Operation:
Description:
Examples:


C,src.b
C,mema.b
C,memb.@L
C,@H+DA.b
The specified bit of the source is logically ANDed with the carry flag bit value. If the Boolean value
of the source bit is a logic zero, the carry flag is cleared to "0"; otherwise, the current carry flag
setting is left unaltered. The bit value of the source operand is not affected.
C,mema.b
C,memb.@L
C,@H+DA.b
1. The following instructions set the carry flag if P1.0 (port 1.0) is equal to "1" (and assuming the
2. Assume the P1 address is FF1H and the value for register L is 5H (0101B). The address

Operand
Operand
carry flag is already set to "1"):
SMB
BAND
(memb.7-2) is 111100B; (L.3-2) is 01B. The resulting address is 11110001B or FF1H,
specifying P1. The bit value for the BAND instruction, (L.1-0) is 01B which specifies bit 1.
Therefore, P1.@L = P1.1:
LD
BAND
mema.b

Logical-AND carry flag with memory bit
15
C,P1.0
L,#5H
C,P1.@L
1
1
0
1
0
1
1

1
1
1
1
0
0
1
b1
b1
b1
1
1
0
1
Second Byte
Binary Code
Operation Summary
b0
b0
b0
1
1
0
1
; C
; If P1.0 = "1", C
; If P1.0 = "0", C
; P1.@L is specified as P1.1
; C AND P1.1
a5
a3
a3
a3
0
0
0
a4
a2
a2
a2
1
1
1
"1"
a3
a1
a1
a1
0
0
0
a2
a0
a0
a0
1
1
1
"1"
"0"
C
C
[L.1-0]
C
FB0H-FBFH
FF0H-FFFH
C AND mema.b
C AND [memb.7-2 + L.3-2].
C AND [H + DA.3-0].b
Operation Notation
Bit Addresses
Bytes
2
2
2
 
Cycles
2
2
2

Related parts for S3C72G9