S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 38

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
   
 
BTSF
Operation:
Description:
Examples:


dst.b
DA.b
mema.b
memb.@L
@H+DA.b
The specified bit within the destination operand is tested. If it is a "0", the BTSF instruction skips
the instruction which immediately follows it; otherwise the instruction following the BTSF is
executed. The destination bit value is not affected.
DA.b
mema.b
memb.@L
@H + DA.b
1. If RAM bit location 30H.2 is set to “0”, the following instruction sequence will cause
2. You can use BTSF in the same way to test a port pin address bit:

Operand
Operand
program to continue execution from the instruction identifed as LABEL2:
BTSF
RET
JP
BTSF
RET
JP
mema.b

Test specified memory bit and skip if bit equals "0"
30H.2
LABEL2
P1.0
LABEL3
a7
1
1
1
0
1
0
1
1
a6
1
1
1
1
1
0
0
1
b1
a5
b1
b1
b1
1
1
0
1
Second Byte
Binary Code

Operation Summary
b0
a4
b0
b0
b0
1
1
0
1
; If 30H.2 = "0", then skip
; If 30H.2 = "1", return
; If P1.0 = "0", then skip
; If P1.0 = "1", then return
a3
a5
a3
a3
a3
0
1
1
1
a2
a4
a2
a2
a2
0
0
0
0
a1
a3
a1
a1
a1
1
0
0
0
a0
a2
a0
a0
a0
0
0
0
0
Skip if DA.b = 0
Skip if mema.b = 0
Skip if [memb.7-2 + L.3-2].
[L.1-0] = 0
Skip if [H + DA.3-0].b = 0
FF0H-FBFH
FF0H-FFFH
Operation Notation
Bit Addresses
Bytes
2
2
2
2
 
Cycles
2 + S
2 + S
2 + S
2 + S
the

Related parts for S3C72G9