Samsung S3F80P5X User Manual page 150

S3f80p5 microcontrollers
Table of Contents

Advertisement

INSTRUCTION SET
CLR
— Clear
CLR
dst
dst ← "0"
Operation:
The destination location is cleared to "0".
Flags:
No flags are affected.
Format:
opc
Examples:
Given: Register 00H = 4FH, register 01H = 02H, and register 02H = 5EH:
CLR
CLR
In Register (R) addressing mode, the statement "CLR 00H" clears the destination register 00H
value to 00H. In the second example, the statement "CLR @01H" uses Indirect Register (IR)
addressing mode to clear the 02H register value to 00H.
6-28
dst
→ Register 00H = 00H
00H
@01H → Register 01H = 02H, register 02H = 00H
Bytes
Cycles
Opcode
2
4
4
S3F80P5_UM_ REV1.00
Addr Mode
(Hex)
dst
B0
R
B1
IR

Advertisement

Table of Contents
loading

Table of Contents