Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

8085 division program

arthasarthas Member Posts: 1
[b][red]This message was edited by arthas at 2004-5-29 0:0:45[/red][/b][hr]
first, excuse me, but my english is not very well.
I need some help here I was trying to make a code for a division in Hexa in a 8085 simulator, but I haven't idea of the code, any sugerence looks good

Thanks.

this is a subtract program:

XRA A
LXI H,2000h
MOV A,M
INX H
sub m
LXI h, 3000h
MOV m,a
LXI h, 2002h
MOV a,m
INX h
sbb m
LXI h,3001h
MOV m,a
INX h
MVI A,0H
ADC A
MOV m,a
HLT

Sign In or Register to comment.