Instruction Mnemonic |
Operand |
Comments |
MVI |
D,07 |
The 8-bit data is stored in
the temporary register D |
LXI |
H,8100 |
It loads the 16 bit data in
the register pair HL |
MOV |
C,D |
Move the contents from
temporary register D to C |
MOV |
A,M |
Move the contents of memory
to accumulator |
INX |
H |
Increment the value present in register pair by 1 |
CMP |
M |
Compare the value present in memory with accumulator |
JNC |
XX |
Jump to 8011 if the carry flag is not set to 0 |
MOV |
B,M |
Move the contents of memory to register B |
MOV |
M,A |
Move the contents of accumulator to memory |
DCX |
H |
Decrement the value present in H by 1 and store in H |
MOV |
M,B |
Move the contents of register B to memory |
INX |
H |
Increment the value present in H register pair by 1 |
DCR |
C |
Decrement the value present in C by 1 and store in C |
JNZ |
YY |
Jump to 8006 if the zero flag is not set to 0 |
DCR |
D |
Decrement value in register D by one and store in D |
JNZ |
ZZ |
Jump to 8002 if the zero flag is not set to 1 |
HLT |
|
Stop |