Sunday, 23 February 2014

16 bit Division using 8085

No comments :

ADDRESS
LABEL
MNEUMONICS
HEX CODE
DESCRIPTION
8000

LXI H, 3644
21

8001


36
Load 16 bit data immediately to the HL register
8002


44

8003

LXI D 004
01

8004


04
Load the 16 bit data immediately to D register
8005


00

8006

LXI D 7777
11
Load 7777 in the DE register pair
8007


77

8008


77

8009
LOOP
INX D
13
Decrement the content in DC register pair




800A

D SUB D
08





Subtract the content in DE register pair from HL register pair
800B

INC
DC
Jump on no carry
800C

DAD
09
Add content of BC register
800D


80

800E


09

800F

SHL99000
22
Store the content in the HL register pair
8010


00
8011


90
8012

XCHG
Eb
Exchange content of HL register
8013

SHLD
22
Store the data from the accumulator into the mean location
8014


02
8015


90
8016

HLT

Stop the program
Share This

No comments :