s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 141

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
BTSF —
BTSF
Operation:
Description:
Examples:
1. If RAM bit location 30H.2 is set to logic zero, the following instruction sequence will cause
2. You can use BTSF in the same way to manipulate a port pin address bit:
dst.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.
Bit Test and Skip on False
the program to continue execution from the instruction identified as LABEL2:
@H + DA.b
*
memb.@L
@H+DA.b
memb.@L
Operand
mema.b
Operand
BTSF
RET
JP
BTSF
RET
JP
mema.b
DA.b
DA.b
mema.b
*
30H.2
LABEL2
P2.0
LABEL3
a7
1
1
1
0
1
0
1
1
Test specified memory bit and skip if bit equals "0"
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 P2.0 = "0", then skip
; If P2.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
FB0H–FBFH
FF0H–FFFH
Operation Notation
Bit Addresses
SAM47 INSTRUCTION SET
Bytes
2
2
2
2
Cycles
2 + S
2 + S
2 + S
2 + S
5-37

Related parts for s3c72m9