Instructions by Name
Name |
Opcode |
Description |
ACI |
0x24 |
add immediate to A with carry |
ACM |
0x25 |
add memory to A with carry |
ADI |
0x20 |
add immediate to A |
ADM |
0x21 |
add memory to A |
ASL |
0x0a |
arithmetic shift left A |
CLF |
0x0c |
clear carry and zero flags |
CPI |
0x28 |
compare immediate to A |
CPM |
0x29 |
compare memory to A |
DCA |
0x08 |
decrement A |
INA |
0x07 |
increment A |
JC |
0x11 |
jump on Carry |
JMP |
0x10 |
jump unconditional |
JNC |
0x13 |
jump on no Carry |
JNZ |
0x14 |
jump on no Zero |
JSR |
0x17 |
jump to subroutine |
JZ |
0x12 |
jump on Zero |
LAI |
0x02 |
load A immediate |
LAM |
0x03 |
load A from memory |
NOP |
0x00 |
no operation |
NOT |
0x09 |
NOT A |
OUT |
0x01 |
output A |
PHA |
0x15 |
push A |
PLA |
0x16 |
pull A |
RC |
0x19 |
return if carry |
RNC |
0x1b |
return if not carry |
RNZ |
0x1c |
return if not zero |
RTS |
0x18 |
return from subroutine |
RZ |
0x1a |
return if zero |
SAM |
0x04 |
store A to memory |
SBI |
0x22 |
subtract immediate from A |
SBM |
0x23 |
subtract memory from A |
SCI |
0x26 |
subtract immediate from A with borrow |
SCM |
0x27 |
subtract memory from A with borrow |
SEF |
0x0d |
set carry and zero flags |
TAS |
0x05 |
transfer A to SP |
TSA |
0x06 |
transfer SP to A |
TST |
0x0b |
test A |
Instructions by Opcode
Opcode |
Name |
Description |
0x00 |
NOP |
no operation |
0x01 |
OUT |
output A |
0x02 |
LAI |
load A immediate |
0x03 |
LAM |
load A from memory |
0x04 |
SAM |
store A to memory |
0x05 |
TAS |
transfer A to SP |
0x06 |
TSA |
transfer SP to A |
0x07 |
INA |
increment A |
0x08 |
DCA |
decrement A |
0x09 |
NOT |
NOT A |
0x0a |
ASL |
arithmetic shift left A |
0x0b |
TST |
test A |
0x0c |
CLF |
clear carry and zero flags |
0x0d |
SEF |
set carry and zero flags |
0x10 |
JMP |
jump unconditional |
0x11 |
JC |
jump on Carry |
0x12 |
JZ |
jump on Zero |
0x13 |
JNC |
jump on no Carry |
0x14 |
JNZ |
jump on no Zero |
0x15 |
PHA |
push A |
0x16 |
PLA |
pull A |
0x17 |
JSR |
jump to subroutine |
0x18 |
RTS |
return from subroutine |
0x19 |
RC |
return if carry |
0x1a |
RZ |
return if zero |
0x1b |
RNC |
return if not carry |
0x1c |
RNZ |
return if not zero |
0x20 |
ADI |
add immediate to A |
0x21 |
ADM |
add memory to A |
0x22 |
SBI |
subtract immediate from A |
0x23 |
SBM |
subtract memory from A |
0x24 |
ACI |
add immediate to A with carry |
0x25 |
ACM |
add memory to A with carry |
0x26 |
SCI |
subtract immediate from A with borrow |
0x27 |
SCM |
subtract memory from A with borrow |
0x28 |
CPI |
compare immediate to A |
0x29 |
CPM |
compare memory to A |
this file was generated by sap-plus-instructions.py at 27-Nov-2024 21:17:05