16- BIT DIVISION
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERA
ND
|
COMMENTS
|
8000
|
|
START
|
LHLD
|
8052
|
Load
the first No. in stack pointer through HL reg. pair
|
8001
|
|
|
|
|
|
8002
|
|
|
|
|
|
8003
|
|
|
XCHG
|
|
|
8004
|
|
|
LHLD
|
8050
|
Load
the second No. in HL reg. pair
&
Exchange with DE reg. pair.
|
8005
|
|
|
|
|
|
8006
|
|
|
|
|
|
8007
|
|
|
LXI
|
B,
0000H
|
Clear
BC reg. pair.
|
8008
|
|
|
|
|
|
8009
|
|
|
|
|
|
800A
|
|
|
MOV
|
A, L
|
Move
the content of reg. L to Acc.
|
800B
|
|
|
SUB
|
E
|
Subtract
reg. E from that of Acc.
|
800C
|
|
|
MOV
|
L, A
|
Move
the content of Acc to L.
|
800D
|
|
|
MOV
|
A, H
|
Move
the content of reg. H Acc.
|
800E
|
|
|
SBB
|
D
|
Subtract reg. D from that of Acc.
|
800F
|
|
|
MOV
|
H, A
|
Move
the content of Acc to H.
|
8010
|
|
|
INX
|
B
|
Increment
reg. Pair BC
|
8011
|
|
|
JNC
|
|
If
there is no carry, go to the location labeled
|
8012
|
|
|
|
|
|
8013
|
|
|
|
|
|
8014
|
|
|
DCX
|
B
|
|
8015
|
|
|
DAD
|
D
|
Add
content of HL and DE reg. pairs.
|
8016
|
|
|
SHLD
|
8054
|
Store
the content of HL pair in 8054 & 8055.
|
8017
|
|
|
|
|
|
8018
|
|
|
|
|
|
8019
|
|
|
MOV
|
A, C
|
Move
the content of reg. C to Acc.
|
801A
|
|
|
STA
|
8056
|
Store
the content of Acc. in memory 8056
|
801B
|
|
|
|
|
|
801C
|
|
|
|
|
|
801D
|
|
|
MOV
|
A, B
|
Move
the content of reg. B to Acc.
|
801E
|
|
|
STA
|
8057
|
Store
the content of Acc. in memory 8057.
|
801F
|
|
|
|
|
|
8020
|
|
|
|
|
|
8021
|
|
|
HLT
|
|
Stop
the program execution.
|
Comments
Post a Comment