Monday, 24 February 2014

16 bit Multiplication using 8085

No comments :

ADDRESS
LABEL
MNEUMONICS
HEX CODE
DESCRIPTION
8000

LXI B,0006
01

8001


06
Load immediately to B
8002


00

8003

LXI D,0007
11

8004


07
Load immediately to H register
8005


00

8006

LXI H, 0000
21

8007


00
Load immediately the data into H
8008


00





Add content of BC to HL register pair
8009
LOOP
DAD B
09





Content of B register is added to HL pair
800A

DLX D
1B





Decrement by 1 of d register pair
800B

MOV A,E
7B





Move the content of D register to A
800C

OR A, B
32





The content of D register is ORed bit by bit with content of A
800D

INC LOOP
12
Jump on no carry
800E


09

800F


80

8010

STA 9000
22

8011


00
Store the content of HL register pair in the memory
8012


90

8013

HLT
90
Stop the program
Share This

No comments :