S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 42

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
   
  
BTSTZ
Operation:
Description:
Examples:
 
dst.b
mema.b
memb.@L
@H+DA.b
The specified bit within the destination operand is tested. If it is a "1", the instruction immediately
following the BTSTZ instruction is skipped; otherwise the instruction following the BTSTZ is
executed. The destination bit value is cleared.
mema.b
memb.@L
@H+DA.b
1. Port pin P0.0 is toggled by checking the P0.0 value (level):
2. For toggling P2.2, P2.3, and P3.0-P3.3:

Operand
Operand
BP2
mema.b

Test specified bit; skip and clear if memory bit is set
BTSTZ
BITS
JP
LD
BTSTZ
BITS
INCS
JR
1
1
0
1
0
1
1
1
1
1
1
0
0
1
P0.0
P0.0
LABEL3
L,#0AH
P2.@L
P2.@L
L
BP2
b1
b1
b1
1
1
0
1
Second Byte
Binary Code
Operation Summary
b0
b0
b0
1
1
0
1
; If P0.0 = "1", then P0.0
; If P0.0 = "0", then P0.0
; First, P2.@0AH = P2.2
; (111100B) + 10B.10B = 0F2H.2
a5
a3
a3
a3
1
1
1
a4
a2
a2
a2
1
1
1
a3
a1
a1
a1
0
0
0
a2
a0
a0
a0
1
1
1
Skip if mema.b = 1 and clear
Skip if [memb.7-2 + L.3-2].
[L.1-0] = 1 and clear
Skip if [H + DA.3-0].b =1 and clear
FB0H-FBFH
FF0H-FFFH
"0" and skip
"1"
Operation Notation
Bit Addresses
Bytes
2
2
2
 
Cycles
2 + S
2 + S
2 + S

Related parts for S3C72G9