[cross-posted to the hercules-os360 and midatlanticretro lists due to
relevant references]
Due to all the stuff going on lately, there have been times over the
past few weeks when I've needed some therapeutic hack time. I dug up
the source code for the Berkeley SPICE 2 analog circuit simulator, plus
the assembler assists for IBM 360/370 mainframes. SPICE 2 is written in
FORTRAN IV, but it requires assembler assists for a few things, and they
must be provided for whatever architecture and operating system you're
porting it to. (well, C under UNIX, but assembler on most everything else)
The 360/370 assembler assists were written for the VM/370 operating
system; they use the DIAGNOSE interface to CP for TOD clock access.
While I do run VM/370 from time to time, most recently I've been pretty
deeply into MVS.
So, I rewrote the assembler assists for MVS, wrote the small pile of
JCL required to compile it all, and got it working today. I'm now
happily running SPICE simulations under MVS 3.8J on an emulated (via
Hercules) IBM 370. This required learning lots of new stuff, which of
course is the best part. Now I know a lot more about 360/370 assembler,
how to call assembler routines from FORTRAN and pass data back and
forth, and how to compile/assemble and link multiple modules into a
single executable via JCL.
I've not yet tried it under OS/360 MVT, but I will soon.
I hope to eventually be able to run this on my real System/370 at the
new building in PA.
-Dave
--
Dave McGuire
Port Charlotte, FL
Show replies by date