SAM47 INSTRUCTION SET

KS57C2308/P2308/C2316/P2316

 

 

BAND — Bit Logical And

BAND (Continued)

Examples: 3. Register H contains the value 2H and FLAG = 20H.3. The address of H is 0010B and FLAG(3–0) is 0000B. The resulting address is 00100000B or 20H. The bit value for the BAND instruction is 3. Therefore, @H+FLAG = 20H.3:

FLAG

EQU

20H.3

LD

H,#2H

 

BAND

C,@H+FLAG

; C AND FLAG (20H.3)

5-30

Page 104
Image 104
Samsung KS57C2308 manual Flag EQU, Band @H+FLAG