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

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)
BTST —
BTST
Operation:
Description:
Examples:
1. If RAM bit location 30H.2 is set to logic zero, the following instruction sequence will execute
dst.b
The specified bit within the destination operand is tested. If it is "1", the instruction that immediately
follows the BTST instruction is skipped; otherwise the instruction following the BTST instruction is
executed. The destination bit value is not affected.
Bit Test and Skip on True
the RET instruction:
memb.@L
*
@H+DA.b
mema.b
Operand
BTST
RET
JP
mema.b
DA.b
memb.@L
@H+DA.b
Operand
C
mema.b
DA.b
C
*
30H.2
LABEL2
a7
1
1
1
1
0
1
0
1
1
a6
1
1
1
1
1
1
0
0
1
Test carry bit and skip if set (= "1")
Test specified bit and skip if memory bit is set
b1
a5
b1
b1
b1
0
1
1
0
1
Second Byte
Binary Code
b0
a4
b0
b0
b0
1
1
1
0
1
Operation Summary
; If 30H.2 = "1", then skip
; If 30H.2 = "0", return
a3
a5
a3
a3
a3
0
0
1
1
1
a2
a4
a2
a2
a2
1
0
0
0
0
a1
a3
a1
a1
a1
1
1
0
0
0
a0
a2
a0
a0
a0
1
1
1
1
1
Skip if C = 1
Skip if DA.b = 1
Skip if mema.b = 1
Skip if [memb.7–2 + L.3–2].
[L.1–0] = 1
Skip if [H + DA.3–0].b = 1
FB0H–FBFH
FF0H–FFFH
Operation Notation
Bit Addresses
SAM47 INSTRUCTION SET
Bytes
1
2
2
2
2
Cycles
1 + S
2 + S
2 + S
2 + S
2 + S
5-39

Related parts for s3c72m9