[Simh] PDP-11 MUL / DIV Bug
Ludwig TAUER
tauer at aon.at
Tue Sep 18 10:35:05 EDT 2018
Hi folks!
Seems I have found a bug in the PDP-11 emulating the
MUL instruction.
The current code takes the specified register as source
instead of the register pair R and R+1 if the register is even.
The DIV instruction is also invalid, but the other way around:
if R is odd, R is duplicated into the high half of the 32 bit int.
The attached patch will correct the problems.
Hope that helps
Ludwig Tauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdp11_mul_div.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20180918/145888f9/attachment.bin>
More information about the Simh
mailing list