In this post I am going to list out the detailed instruction set available for 8080 and 8085
There isn't much difference between the instruction set of 8080 and 8085.
The purpose of writing this post is to have a kick start on programming 8080 / 8085 Microprocessor.
The main purpose is to set the fundamentals right for those who wants to know how actually the operations are going on in a microprocessor in a detailed manner.
The following sections would debrief you on the instructions used to program 8080 / 8085 microprocessor...there is no need to memorize it....these sections are provided for you to refer in case if there is any need.
Frequently Used Instructions / Op-Codes | |
Instruction / Op-Code | Meaning |
ADC, ACI | Add with Carry |
ADD, ADI | Add |
ANA, ANI | Logical AND |
CALL | Call Subroutine |
CMP, CPI | Compare |
DCR | Decrement |
IN | Input |
INR | Increment |
INX | Increment 16 Bits |
JC | Jump on Carry |
JMP | Jump |
JNC | Jump on Not Carry |
JNZ | Jump on Not Zero |
JZ | Jump on Zero |
LDA | Load Accumulator |
LXI | Load 16 Bits |
MOV | Move |
MVI | Move Immediate |
OUT | Output |
RAL | Rotate with Carry Left |
RAR | Rotate with Carry Right |
RET | Return from SubRoutine |
STA | Store Accumulator |
SUB, SUI | Subtract |
Occasionally Used Instructions / Op-Codes | |
Instruction / Op-Code | Meaning |
CMA | Complement Accumulator |
DAA | Decimal Adjust |
DAD | 16-Bit Add |
DCX | 16-Bit Decrement |
DI | Disable Interrupts |
EI | Enable Interrupts |
HLT | Halt |
JM | Jump on Minus |
JP | Jump on Positive |
LDAX | Load Accumulator Indirect |
LHLD | Load H and L Direct |
NOP | No Operation |
ORA, ORI | Logical OR |
POP | Remove from Stack |
PUSH | Enter into Stack |
RMI(8085 Only) | Reset Interrupt Mask |
RLC | Rotate Left |
RRC | Rotate Right |
SHLD | Store H and L Direct |
SIM(8085 Only) | Set Interrupt Mask |
STAX | Store Accumulator InDirect |
XCHG | Exchange D and E, H and L |
XRA, XRI | Logical Exclusive OR |
Seldom Used Instructions / Op-Codes | |
Instruction / Op-Code | Meaning |
CC | Call on Carry |
CM | Call on Minus |
CMC | Complement Carry |
CNC | Call on No Carry |
CNZ | Call on Not Zero |
CP | Call on Positive |
CPE | Call on Parity Even |
CPO | Call on Parity Odd |
CZ | Call on Zero |
JPE | Jump on Parity Even |
JPO | Jump on Parity Odd |
PCHL | H and L to Program Counter |
RC | Return on carry |
RM | Return on Minus |
RNC | Return on No Carry |
RNZ | Return on Not Zero |
RP | Return on Positive |
RPE | Return on Parity Even |
RPO | Return on Parity Odd |
RST | Restart |
RZ | Return on Zero |
SBB, SBI | Subtract With Borrow |
SPHL | H and L to Stack Pointer |
STC | Set Carry |
XTHL | Exchange Top of Stack, H and L |
No comments:
Post a Comment