| Instruction Mnemonic |
Operand |
Comments |
|
LDA |
8100 |
Load contents of 8100 half
first input of 16 bit accumulator |
|
MOV |
B,A |
Move the contents of
accumulator to register B |
|
ANI |
0F |
Perform AND operation of
the input with 0F |
|
MOV |
C,A |
Move the contents of
accumulator to register C |
|
MOV |
A,B |
Move the contents of
register B to accumulator |
|
ANI |
F0 |
Perform AND operation of
the input with F0 |
|
RLC |
|
Rotate accumulator left through carry |
|
RLC |
|
Rotate accumulator left through carry |
|
RLC |
|
Rotate accumulator left through carry |
|
RLC |
|
Rotate accumulator left through carry |
|
MOV |
D,A |
Move the contents of accumulator to register D |
|
MVI |
A,00 |
Move immediately the value 00 to accumulator |
|
MVI |
B,0A |
Move immediately the value 0A to register B |
|
ADD |
B |
Add the contents of B to accumulator and store in accumulator |
|
DCR |
D |
Decrement the value present in register D by 1 |
|
JNZ |
XX |
Jump to 8013 when zero flag is not set |
|
ADD |
C |
Add the contents of C to accumulator and store in accumulator |
|
STA |
8200 |
Store the output in address 8200 |
|
HLT |
|
Stop |