KS57C2308/P2308/C2316/P2316
SAM47 INSTRUCTION SET
5-11
Table 5-12. Logic Instructions — High-Level Summary
Name
Operand
Operation Description
Bytes
Cycles
AND
A,#im
Logical-AND A immediate data to A
2
2
A,@HL
Logical-AND A indirect data memory to A
1
1
EA,RR
Logical-AND register pair (RR) to EA
2
2
RRb,EA
Logical-AND EA to register pair (RRb)
2
2
OR
A, #im
Logical-OR immediate data to A
2
2
A, @HL
Logical-OR indirect data memory contents to A
1
1
EA,RR
Logical-OR double register to EA
2
2
RRb,EA
Logical-OR EA to double register
2
2
XOR
A,#im
Exclusive-OR immediate data to A
2
2
A,@HL
Exclusive-OR indirect data memory to A
1
1
EA,RR
Exclusive-OR register pair (RR) to EA
2
2
RRb,EA
Exclusive-OR register pair (RRb) to EA
2
2
COM
A
Complement accumulator (A)
2
2
Table 5-13. Arithmetic Instructions — High-Level Summary
Name
Operand
Operation Description
Bytes
Cycles
ADC
A,@HL
Add indirect data memory to A with carry
1
1
EA,RR
Add register pair (RR) to EA with carry
2
2
RRb,EA
Add EA to register pair (RRb) with carry
2
2
ADS
A, #im
Add 4-bit immediate data to A and skip on carry
1
1 + S
EA,#imm
Add 8-bit immediate data to EA and skip on carry
2
2 + S
A,@HL
Add indirect data memory to A and skip on carry
1
1 + S
EA,RR
Add register pair (RR) contents to EA and skip on carry
2
2 + S
RRb,EA
Add EA to register pair (RRb) and skip on carry
2
2 + S
SBC
A,@HL
Subtract indirect data memory from A with carry
1
1
EA,RR
Subtract register pair (RR) from EA with carry
2
2
RRb,EA
Subtract EA from register pair (RRb) with carry
2
2
SBS
A,@HL
Subtract indirect data memory from A; skip on borrow
1
1 + S
EA,RR
Subtract register pair (RR) from EA; skip on borrow
2
2 + S
RRb,EA
Subtract EA from register pair (RRb); skip on borrow
2
2 + S
DECS
R
Decrement register (R); skip on borrow
1
1 + S
RR
Decrement register pair (RR); skip on borrow
2
2 + S
INCS
R
Increment register (R); skip on carry
1
1 + S
DA
Increment direct data memory; skip on carry
2
2 + S
@HL
Increment indirect data memory; skip on carry
2
2 + S
RRb
Increment register pair (RRb); skip on carry
1
1 + S
Summary of Contents for C2316
Page 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Page 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Page 170: ......
Page 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Page 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Page 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Page 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Page 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Page 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Page 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Page 318: ......
Page 320: ......
Page 322: ......
Page 325: ......
Page 327: ......