8 BIT DATA ADDITION
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
4100
|
|
START
|
MVI
|
C, 00
|
Clear C reg.
|
4101
|
|
|
|
|
|
4102
|
|
|
LXI
|
H, 4500
|
Initialize HL reg. to
4500
|
4103
|
|
|
|
|
|
4104
|
|
|
|
|
|
4105
|
|
|
MOV
|
A, M
|
Transfer first data to
accumulator
|
4106
|
|
|
INX
|
H
|
Increment HL reg. to point next memory Location.
|
4107
|
|
|
ADD
|
M
|
Add first number to acc.
Content.
|
4108
|
|
|
JNC
|
L1
|
Jump to location if result does
not yield carry.
|
4109
|
|
|
|
|
|
410A
|
|
|
|
|
|
410B
|
|
|
INR
|
C
|
Increment C reg.
|
410C
|
|
L1
|
INX
|
H
|
Increment HL reg. to point next memory Location.
|
410D
|
|
|
MOV
|
M, A
|
Transfer the result from acc. to
memory.
|
410E
|
|
|
INX
|
H
|
Increment HL reg. to point next
memory Location.
|
410F
|
|
|
MOV
|
M, C
|
Move carry to memory
|
4110
|
|
|
HLT
|
|
Stop the program
|
Comments
Post a Comment