Here's the 1130 simulator as it stands now.  I haven't written any
documentation yet. So far I've only compiled it under Win32 using VC 2.2.

There are four programs:

	ibm1130		the simulator
	asm1130		cross assembler
	cardscan	punched-card bmp image interpreter
	mkdisk		simulated disk formatter

And several files in the software (sw) directory:

	boot1.ldr	APL cold start loader
	boot2.ldr	standard cold start loader
	boot2		script to boot the 1130
	test.dsk	disk image, has secondary boot loader in sector 0
			but nothing else

	coldput.asm	program used to write secondary loader onto test.dsk

	type.asm	program to type on console printer
	prtcr.asm	program to copy card deck to console printer

--------------------------------------------------------------------------
Status of the simulator:

* the card punch and 1132 line printer are untested

* the card reader, disk, console keyboard and console printer have been made
  to work with simple, not-genuine-IBM programs. Anyone have the diagnostics?!?

* the card reader, punch and disk don't compute their device status word
  until an XIO requests it; this is probably bad as the examine command
  will show the wrong value.

* there is a reasonably fun GUI available for Windows builds; this requires
  the use of modified scp.c and scp_tty.c.  These are enclosed.  You should
  merge the noted modifications into the current versions of scp and scp_tty.

--------------------------------------------------------------------------
Non-Windows builds: please help me out here!

The enclosed makefile ibm1130.mak is for Visual C 2.0 (eeek!)
If you build your own makefile you should use the following source files:

ibm1130_cpu.c
ibm1130_sys.c
ibm1130_stddev.c
ibm1130_cr.c
ibm1130_disk.c
ibm1130_stddev.c
..\scp.c
..\scp_tty.c

all depend on ibm1130_defs.h, ..\sim_defs.h, ..\sim_rev.h
in addtion ibm1130_stddev.c depends on ibm1130_conin.h and ibm1130_conout.h






--------------------------------------------------------------------------
Some sample things to run:
(it's best to hit CHECK RESET or type "reset" between program runs!)

* echo console keyboard to console printer. This one is really fun
* with the GUI enabled; the lights flash in a pleasing manner.

	asm1130 type
	ibm1130
	load type.out
	go

* copy card deck to console printer

	asm1130 prtcr
	ibm1130
	load prtcr.out
	attach cr <filename of your choice>
	go

* try to boot up a disk
	ibm1130
	do boot2

	It will get as far as it can without a real disk image, and finally
	crash with "Invalid command, IAR: 00000002 (01fe ?00   1 fffe   )".
	Examine boot2.log to see the disk activity.

--------------------------------------------------------------------------
sample usage
--------------------------------------------------------------------------

asm1130 -l resmon.asm

	compiles source file, creates simulator load
	file (resmon.out) and listing file (resmon.lst)

	I had to type in the resident monitor, so it's missing
	the comments. I'll add them later.

	The cross assembler wants files either in strict column
	layout matching the IBM spec, or, if tabs are present in the
	source file,

	label<tab>opcode<tab>flags<tab>operand

	The output file is in the format used by the 1130 simulator's
	load command.

--------------------------------------------------------------------------
cardscan -x image.bmp

	where x =	b for binary interpretation
			a for ascii interpretation
			l for boot loader interpretation

--------------------------------------------------------------------------
mkdisk test.dsk

	creates a file named 'test.dsk' for use as
	a simulated 1130 disk. At this point it only writes
	sector numbers, doesn't create a directory structure.

--------------------------------------------------------------------------
ibm1130
	starts SIMH-based simulator. 

	Enhancements:

	* Displays a console window (you can hide with DISABLE CONSOLE)
	  with buttons & lights.  

	* CPU activity log

		the command "attach log file.log" will make the simulator
		write a detailed log of CPU and IO activity, good for
		debugging. Turn off with "detach log".

	* DO command
		reads file 'filename' for SIMH commands. Lets you write
		simh command files to be run from the prompt rather
		than just the command line. Bob Supnik has added this to
		the main simh code tree.
