2.6 KiB
2.6 KiB
Cardiograph Mark I (mainframe)
The components of a Mark I are:
- an CG 101 Central Processing Unit
- an CG 102 Core Memory Unit
- an CG 103 Print-Key-Punch
- an CG 104 Matrix Display
Console
TBC TBC TBC
The console is equipped with:
-
Power switch
-
Load button
-
Run button
-
Run Single Step button
-
Halt button
-
Memory Read button
-
Memory Read Next button
-
Memory Write button
-
Memory Write Next button
-
4 Sense Switches
-
8 Accumulator lights
-
8 Address lights
-
8 Data lights
-
8 Instruction Pointer lights (review IP size?)
-
8 Status Register lights
IO programming
Only one input or output device can be accessed at a time.
Reading data
- Use
DEV xxto select input device xx - Use
INP yyto read one byte into memory at address yy
TODO: find a way to allow the input device to refuse to provide input
Writing data
- Use
DEV xxto select output device xx - Use
OUT yyto write one byte from memory at address yy - Use
FED xxto...
- card punch: load a new card
- printer: begin a new line (CR, LF)
- display: begin a new line
Punched card format
FIXME:
Cards are punched in EBCDICEBCDIC data is translated into binary by the card reader/punch- Only columns 1-64 are used (for a maximum of 64 bytes of data per card)
Printer format
- The printer format is the same as the card format
- One line of printing is equivalent to one card
- The printer can print up to 64 characters per line
Matrix display format
- The display is a 5x5 grid of lights
- Each light has 16 possible brightness levels (0 = off, 15 = maximum)
- The display is written one line at a time
- After the display is selected with
DEV, writing begins on the top line - Writing wraps around and begins at the top again, if more than 5 lines are written
Device numbers
- card reader / typewriter
- card punch / line printer
- display
Print-Key-Punch configurations
A dial allows you to select which input device to connect to the CPU:
- none
- card reader
- keyboard
A similar dial selects the output device to connect:
- none
- card punch
- printer
Thus, this all-in-one device allows the following configurations:
| printer | card punch | none | |
|---|---|---|---|
| keyboard | teletypewriter | auto punch | keypunch (offline) |
| card reader | (keys + print) | card duplicator | (card reader) |
| none | line printer | (auto punch) | (scrap metal) |