Discussion:
Hello World on real hardware - 4341 (hardware ??) debugger (Was [hercules-390] Re: Is there a 32 bit mode?)
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-07-30 17:24:27 UTC
Permalink
The simplest "hello world" is (from memory) to do a
DIAG 8 that Hercules recognizes, rather than a more
complex write to a console.
"more Complex write to a console", is arguable :)

In Hercules : ** recent versions of Hyperion do NOT accept any
spaces in the 'r' data fields between hex digits (Why not ???) **

r 48=00 00 02 10 # set CAW address
r 200=9C000009 # SIO x'009' <<<<<<<< put your
console address in last two bytes

r 210=0909000220 00000050 #setup a write CCW, address 220, 80 bytes
r 220=C8C5D3D3 D640E6D6 D9D3C400 # HELLO WORLD

r 68=000A0000 00ABDEAD # ** optional - setup the PROG SVC
to halt the machine ( assuming 00's are at location x'204 (following
the SIO instruction)

r 0= 00 08 00 00 00 00 02 00 # set restart address to x'200
restart

Dave, eons ago, I remember our college's 4341 had some kind of debugger.

I *think* it was hardware debugger ?? accessible from dedicated keys
on the operator console ?

Or it *may* have just been STOP / and STEP (instruction) keys ?

If there IS hardware debugger on any of your 370 boxes entering the
preceeding data, then pressing the restart key will print HELLO WORLD
to the device # in the SIO instruction.

Mike
Here is code (from sapsupa.asm in PDPCLIB)
Do you have such an example to run on real hardware?
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
Ivan Warren ivan@vmfacility.fr [hercules-390]
2018-07-30 17:54:05 UTC
Permalink
Post by Mike Stramba ***@gmail.com [hercules-390]
The simplest "hello world" is (from memory) to do a
DIAG 8 that Hercules recognizes, rather than a more
complex write to a console.
I *think* it was hardware debugger ?? accessible from dedicated keys
on the operator console ?
s+ ?

--Ivan



[Non-text portions of this message have been removed]

Loading...