Re: [Simh] Tops (-10) development

2016-06-10 Thread Johnny Eriksson
> 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

Re: [Simh] Ferranti Pegasus Simulator

2016-06-10 Thread Leo Broukhis
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

[Simh] Ferranti Pegasus Simulator

2016-06-10 Thread Dave Wade
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

Re: [Simh] Using the simh LGP-30 emulator

2016-06-10 Thread Bob Supnik
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

Re: [Simh] Ferranti Pegasus Simulator

2016-06-10 Thread Leo Broukhis
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

Re: [Simh] Ferranti Pegasus Simulator

2016-06-10 Thread Bob Supnik
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