Unsigned Division in Intel 8086 Assembler using only register shifts

acemcmac

Lifer
Mar 31, 2003
13,712
1
0
bump for more info, I just relized some people were actually forced to use 8085 :shocked:
 

warcrow

Lifer
Jan 12, 2004
11,078
11
81
I have no idea wtf you're talking about, but it sounds really disappointing.
 

DNvCross

Member
Oct 26, 2004
36
0
66
I'm the sucker who was forced to do this on an 8085 chip. mult and div weren't even available.
 

TerryMathews

Lifer
Oct 9, 1999
11,464
2
0
If you're asking what I think your asking (Implement division of two integers without using DIV), I had to do this in my ASM class. It was for a 68000 though.

Here's an algorithm for it.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
Originally posted by: TerryMathews
If you're asking what I think your asking (Implement division of two integers without using DIV), I had to do this in my ASM class. It was for a 68000 though.

Here's an algorithm for it.

Although that works he's inquiring about just register shifts. Do your own HW OP. :p
 

TerryMathews

Lifer
Oct 9, 1999
11,464
2
0
Originally posted by: tfinch2
Originally posted by: TerryMathews
If you're asking what I think your asking (Implement division of two integers without using DIV), I had to do this in my ASM class. It was for a 68000 though.

Here's an algorithm for it.

Although that works he's inquiring about just register shifts. Do your own HW OP. :p

You're right, I read over that part and just saw the registers bit.

Now I'm intrigued - I can't imagine how you could handle any case using only shifts. Someone post the answer!