Programming the 8085
Home
Graphics
C++
Data Structures
Wednesday, August 4, 2010
16 bit by 8 bit division
15. Program to implement 16 bit by 8-bit division.
4100 21 00 50 LXI H,5000H 4103 56 MOV D,M 4104 23 INX H 4105 5E MOV E,M 4106 23 INX H 4107 6E MOV L,M 4108 26 00 MVI H,00H 410A 44 MOV B,H 410B 7B LOOP1: MOV A,E 410C 95 SUB L 410D 5F MOV E,A 410E 7A MOV A,D 410F 9C SBB H 4110 57 MOV D,A 4111 DA 18 41 JC J1 4114 04 INR B 4115 C3 0B 41 JMP LOOP1 4118 19 J1: DAD D 4119 22 05 50 SHLD 5005H 411C 78 MOV A,B 411D 32 04 50 STA 5004H 4120 76 HLT
1 comment:
Unknown
October 22, 2018 at 1:31 AM
Plz output also upload cz m implemented but wrong output show
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Plz output also upload cz m implemented but wrong output show
ReplyDelete