> I have finally gotten my Tops-10/IPv4 stack running on the KL10, in this
> case an instance of KLH10. There are still issues, and there are areas
> that need significant cleanup etc.
Update:
I have found and fixed a handful of small bugs, and for the moment the
code seems to work (for the
As a first step, you can try using https://gmplib.org/
Leo
On Sat, 11 Jun 2016 00:46:02 +0100, "Dave Wade"
wrote:
> Whilst its not a SIMH simulator, I hope you can help. I want to write an
> emulator for the Pegasus. The Ferranti Pegasus was (there are none
> operating
Whilst its not a SIMH simulator, I hope you can help. I want to write an
emulator for the Pegasus. The Ferranti Pegasus was (there are none operating
at present) a strange beast with two 18-bit instructions per 39-bit word.
Generally, it does 39-bit twos complement arithmetic. The multiply results
A really valuable tutorial. It's also the first proof that the LGP30
simulator sort-of works; I'm relieved.
Shoehorning the LGP30's operating procedures into SimH's default syntax
was difficult. It might have been better to use the 'simulator-defined
command' capability to create a set of
Or, here is an implementation of 128-bit division:
Unsigned: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/builtins/
*udivmodti4*.c
Signed: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/builtins/
*divti3*.c
There are any number of strange-length divide algorithms in SimH. Here
is the PDP-10 code for dividing a 70b unsigned integer by a 35b
(unsigned) integer.
// dvd[0:1] = 70b dividend, high order first (35b in each word)
// dvr = 35b divisor
// rs[0:1] = quotient remainder
// all variables