| Instruction Mnemonic |
Operand |
Comments |
|
LDA |
8101 |
Load Accumulator with
contents from memory address 8101 |
|
MOV |
B,A |
Move contents of
accumulator and carry to register B |
|
LDA |
8100 |
Load Accumulator with
contents from memory address 8100 |
|
MVI |
C,00 |
Move immediately data to
register C |
|
CMP |
B |
Compare contents of
accumulator with register B (Back ground Subtraction) |
|
JC |
XY |
The program sequence is
transferred to address 8012 if carry flag is set to 1 |
|
SUB |
B |
Subtract the content of a
register B from the content of accumulator and store the result in accumulator. |
|
INR |
C |
The contents of register C are incremented by 1 and the result is
stored in register C |
|
JMP |
YZ |
The program sequence is
transferred to the memory location 8009 |
|
STA |
8103 |
The contents of accumulator
are copied into the memory address 8103 |
|
MOV |
A,C |
Move contents of register C
and carry to accumulator |
|
STA |
8102 |
The contents of accumulator
are copied into the memory address 8102 |
|
HLT |
|
stop |