ADDRESS
|
LABEL
|
MNEUMONICS
|
HEX CODE
|
DESCRIPTION
|
8000
|
LXI H,5463
|
21
|
||
8001
|
63
|
Load 16 bit data immediately to HL pair
|
||
8002
|
54
|
|||
8003
|
LXI B,4213
|
01
|
||
8004
|
13
|
Load 16 bit data immediately to BC register pair
|
||
8005
|
42
|
|||
8006
|
MVI D,00
|
16
|
Initialize carry in D register
|
|
8007
|
00
|
|||
8008
|
DSOB B
|
08
|
||
Subtract content of BC to HL register pair
|
||||
8009
|
INC LOOP 800D
|
D2
|
Jump on no carry
|
|
800A
|
0D
|
|||
800B
|
80
|
|||
800C
|
INR D
|
14
|
Increment the content of D
|
|
800D
|
LOOP
|
SHLD9000
|
22
|
|
800E
|
00
|
Store the content of HL register pair in the memory
|
||
800F
|
90
|
|||
8010
|
MOV A, D
|
7A
|
Move the content of D to A
|
|
8011
|
STA 9002
|
32
|
||
8012
|
02
|
Store the data from A to memory location
|
||
8013
|
90
|
|||
8014
|
HLT
|
76
|
Stop the program
|
Wednesday, 26 February 2014
16 bit subtraction using 8085
Share This
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment