SC73C1402
and the results are stored in the accumulator. SF changed, SF=/Z.
k.
l.
OR A, @LR
XOR A, @LR
The accumulator content and the contents of RAM pointed at by the L register are
ORed and the results are entered in the accumulator. SF changed, SF=/Z.
The contents of the accumulator and RAM pointed at by the L register are XORed
and the results are stored in the accumulator. SF changed, SF=/Z.
4. Bit operation instructions
Instruction
CLR @LR, b
SET @LR, b
TEST @LR, b
a.
b.
c.
CLR @LR, b
SET @ LR, b
TEST @LR, b
Operation
RAM (LR) b←0
RAM (LR) b←1
SF←/RAM (LR) b
CF
---
---
---
SF
1
1
*
Cycle
2
2
2
Clear the B bit of the RAM pointed at by the LR register.
Set the B bit of the RAM pointed at by the LR register to be 1.
Test the B bit of the RAM pointed at by the LR register. If this bit is1, the SF is set to
0; otherwise, the SF is set to 1.
5. Carry operation instructions
Instruction
CLR CF
SET CF
TESTP CF
a.
b.
c.
CLR CF
SET CF
TESTP CF
CF←0
CF←1
SF←CF
Clear the carry flag to logic zero.
Set the carry flag to logic 1.
Test the carry flag, sent the carry flag to SF.
Operation
CF
0
1
---
SF
1
1
*
Cycle
2
2
1
6. Branch instructions
Instruction
BSS label
LD MBR, #K
Operation
CF
---
---
SF
1
---
Cycle
2
1
Only when SF is 1, the JUMP instruction is executed; otherwise it will execute the next instruction.
Notes:
a.
b.
c.
d.
Label
#K
b
%P
Jump destination address
Immediate (0~15)
Bit addressing (0~3)
Port address
7. Subroutine instructions
Instruction
CALLS label
RET
to 01FH
Operation
CF
---
---
SF
---
---
Cycle
2
2
When executing subroutine call and return instructions, the subroutine starting address is limited from 000H
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.1
2005.12.19
Page 11 of 20