Repository navigation
UsingTheControlPanel
The IBM 1620 had a large Control Panel on the front of its desk-like main cabinet. The panel had three sections -- a bar at the top with logos and captions, a set of gray and blue panels in the middle with many lamps and a large rotary switch, and a white panel at the bottom with additional lamps switches and buttons.
The retro-1620 emulator attempts to faithfully represent the Control Panel in a window that opens automatically when you start the emulator. It looks like this:

The bar at the top of the Control Panel shows an IBM logo of the time, a 1620 Model 2 logo, and the caption "DATA PROCESSING SYSTEM." Portions of this bar have some non-obvious functions that are discussed below under "Control Panel Diagnostic Features."
The panels in this section have numerous small round lamps that represent the state of "gates" (flip-flops) and register bits in the system.
CONTROL GATES -- this panel has lamps that show the state of gates used to control instruction execution in the system. We do not have comprehensive documentation on the function of all of these gates. Some of their functions can be determined from their captions. The function of several of these lamps will be mentioned in this and other wiki pages.
INPUT-OUTPUT -- this panel has lamps for gates that control I/O operations in the system, e.g., RD indicates that a read operation is in progress and WR indicates that a write operation is in progress. REL indicates that an I/O operation is in the process of being "released" (i.e., terminated) either manually or automatically. Most of the lamps on the second and third rows apply to disk I/O. The lamps on the bottom row of this panel apply only to the IBM 1710, a process-control variant of the 1620.
INST & EXEC CYCLE -- the lamps in this panel indicate the various states the CPU went through when fetching and executing instructions. Those with "I-" captions refer to the I-cycles, which fetched instructions from memory and prepared the CPU to execute them. The "E-" captions refer to the E-cycles, which executed instructions after they were fetched. The "IA_" captions refer to three states that controlled indirect addressing during the I-cycles. The "IX" caption refers to states that applied index registers to operand addresses during the I-cycles. The MULTIPLIER/QUOTIENT (MQ) register in the next panel indicated the specific indexing state when the "IX" lamp was on.
OPERATION REGISTER -- this panel shows three registers in the CPU. Each row represents one decimal digit in the register. The 8-4-2-1 bits show the binary-coded decimal (BCD) value of the digit. The C bit is the "check" or odd-parity bit.
- OPERATION REGISTER (OR) -- this two-digit register holds the "opcode" (operation code) for the current instruction. This code determines what the instruction does.
- MULTIPLIER/QUOTIENT (MQ) -- this one-digit register has numerous functions as both storage and a counter, depending on the current opcode. The name comes from its use in multiply and divide operations.
- DATA REGISTER (DR) -- this two-digit register is used for temporary storage during I-cycles and E-cycles. Its odd (units) digit also holds the augend during addition and subtraction. This register does not support flag bits, but when data os loaded into the register, the FL-1 control gate is set to the odd digit's flag bit and the FL-2 control gate is set to the even digit's flag bit.
MEMORY BUFFER REGISTER -- this panel shows two registers used as the interface between the CPU and core memory. The third row of lamps is not used.
- MEMORY BUFFER REGISTER (MBR) -- this two-digit register holds the data when a location is read from core memory. The 1620 read two digits at a time from memory: a digit at an even address and the digit from the next-higher odd address. Digits are processed singly or in pairs, depending on the opcode and E-cycle state. The digits in this register have an extra bit, F, representing the flag bit for the digit.
- MEMORY INHIBIT REGISTER (MIR) -- this two-digit register holds the data that is to be written to core memory. As with read, two digits at a time are always written to memory at an even and odd address. Instructions generally operate by reading two digits in MBR, acting in some way on one or both of them, moving the result to MIR, and writing the updated digits back to memory.
MEMORY ADDRESS REGISTER (MAR) -- this five-digit panel normally shows the contents of the Memory Address Register, which determines the location from which digit pairs are read into MBR and written from MIR. When the system is in MANUAL mode (halted), it can display the value of other registers, as described next.
MEMORY ADDRESS REGISTER DISPLAY SELECTOR -- this panel has a large, 12-position, rotary switch. Each position is associated with an address register in the CPU. There are two ways to change the position of the switch:
- Clicking within the silver-ish "bowl" of the switch (it was recessed into the panel on a real 1620) will move the tip of the switch knob one step in the direction of the click.
- Clicking one of the circled captions around the periphery of the bowl will step the switch to that position.
The position of this switch is preserved across emulator restarts.
When the system is in MANUAL mode (i.e., the white MANUAL lamp on the bottom panel is lit), pressing the DISPLAY MAR button on the lower panel will display the value of the currently-selected register in the MAR lamps. If the system is not in MANUAL mode, the DISPLAY MAR button is disabled. Once the system returns to AUTOMATIC mode, the MAR lamps will revert to showing the address being read or stored in memory.
For more information on the address registers used in the Model 2, see the "1620 Console" and "Appendix B" sections of the IBM 1620 Central Processing Unit, Model 2 manual or the IBM 1620 Model 2 Reference Card.
The bottom section of the Control Panel contains the lamps, buttons, and switches of most interest to someone operating the 1620.
On the right side of this section is a row of 13 rectangular lamps, and below that a row of 13 dark-blue buttons. Three of the lamps and two of the buttons are not used.
The lamps show important status and alarm conditions for the system:
- POWER ON -- this green lamp turns on automatically when the emulator is started from the home page and the Control Panel window opens.
- POWER READY -- this white lamp comes on a couple of seconds after the window opens. At that point the emulator is ready to use. On a real 1620, it took about 15 minutes for the power supplies to stabilize and this lamp to come on.
- THERMAL -- on a real 1620, this orange lamp would light if the internal temperature of the system became too high. In the emulator this lamp is not used.
- WRITE INTERLOCK -- this orange lamp will light if a write operation is initiated on a device that is not ready to receive data. This lamp may come on during normal operations for the Card Punch, Printer, and Disk devices when they are temporarily busy.
- READ INTERLOCK -- this orange lamp will light if a read operation is initiated on a device that is not ready to receive data. This lamp may come on during normal operations for the Card Reader and Disk devices when they are temporarily busy.
- SAVE -- This white lamp will light when the SAVE button below it is pressed to cause the address in the IR-1 register (the address of the next instruction to be executed) to be copied to the PR-1 register. It turns off when the RESET button is pressed or when a Branch Back (BB, 42) instruction is executed to restore IR-1 from PR-1.
- TWPR SELECTED -- This white lamp will light when the Typewriter device is selected for input or output, including when the INSERT button is pressed. It turns off automatically when an I/O operation is completed or when the RELEASE button is pressed.
- AUTOMATIC -- This white lamp will light when the CPU is in automatic mode, i.e., when it is executing instructions or performing I/O operations.
- MANUAL -- This white lamp will light when the CPU is halted. Both the MANUAL and AUTOMATIC lamps may be on when using the INSTANT STOP/SCE button, as discussed below.
- CHECK STOP -- This orange lamp will light when the CPU has stopped due to an alarm or check condition. It is turned off when the check condition is reset by a Branch Indicator (BI, 46) or Branch No Indicator (BNI, 47) instruction or when the RESET or CHECK RESET button is pressed.
The buttons below these lamps control the operation of the 1620:
- POWER -- Pressing this button will "power down" the emulator and close the Control Panel and I/O device windows. Any unsaved output to the Typewriter and Card Punch will be lost, as will be any unread data in the Card Reader or Paper Tape Reader. The emulator can be restarted from its home page. On a real 1620, there was a large toggle switch in this position, but in the emulator it is just a simple "off" button.
- RESET -- clicking this button will reset most of the control gates in the CPU, as well as the check indicators discussed below. The button is effective only in MANUAL mode.
-
MODIFY -- this button is used with the CHECK RESET button to initialize a clear-memory operation. The button is effective only in MANUAL mode. On a real 1620, you would press MODIFY and CHECK RESET simultaneously, which would turn on the CLR MEM gate. Then pressing the START button would clear the system's core memory to zeroes. In the emulator, simultaneous presses are not possible, so there are two ways to use these buttons:
- Click MODIFY and then immediately click CHECK RESET. That will turn on the CLR MEM gate. Clicking any other button after MODIFY aborts the clear operation.
- Click and hold MODIFY, then drag your pointer over to the CHECK RESET button and release. That will turn on the CLR MEM lamp. Clicking RESET will abort the clear operation.
- CHECK RESET -- used without MODIFY, this button clears all of the check indicators and turns off the CHECK STOP lamp. This button can be pressed at any time.
- DISPLAY MAR -- As discussed above, this button is used in conjunction with the large rotary selector switch to display one of the CPU's address registers. The button is effective only in MANUAL mode.
- SAVE -- This button copies the address in the IR-1 register to the PR-1 register and turns on the SAVE lamp, as discussed above. It is typically used to mark the current place of execution in the program while doing manual debugging. This button is effective only in the MANUAL mode.
- INSERT -- this button prepares the Typewriter to read instructions and data from its keyboard in decimal mode (digits, flags, and record mark only). It also sets the IR-1 and OR-2 registers to zero, places 36 in the OPERATION REGISTER to command a Read Numerically (RN) operation, turns off the MANUAL lamp, and turns on the TWPR SELECTED and AUTOMATIC lamps. The button is effective only in the MANUAL mode. Each digit entered from the keyboard is stored in memory starting at address 0 and incrementing by one for each digit. Keyboard input is terminated when (a) the RELEASE button on the Control Panel is pressed, (b) the R/S key on the typewriter is pressed, or (c) when the 100th digit entered from the keyboard is stored at address 99. Pressing the START button on the Control Panel (or the R/S key on the Typewriter) starts the CPU executing at address 0.
- RELEASE -- Pressing this button will terminate any I/O operation that is in process, including input initiated by the INSERT button. The button is effective only when the system is in the AUTOMATIC mode and an I/O operation is in process. If the TWPR SELECTED lamp is on, it is turned off. The AUTOMATIC lamp is turned off, the MANUAL lamp is turned on, and the system is placed in MANUAL mode. Pressing the START button at that point will execute the next instruction in sequence.
- START -- This button will place the system in AUTOMATIC mode and start (or restart) the CPU executing instructions. The button is effective only in the MANUAL mode.
-
STOP/SIE -- This button can be used to single-step through instructions. SIE stands for Single Instruction Execute.
- If the system is in the AUTOMATIC mode, pressing this button will cause it to halt at the end of the current instruction and place the system in the MANUAL mode.
- If the system is already in the MANUAL mode, pressing this button will cause it to execute the next instruction in AUTOMATIC mode and then halt in the MANUAL mode.
- Pressing the START button after this button will resume continuous AUTOMATIC mode.
-
INSTANT STOP/SCE -- This button can be used to single-step through the memory cycles of most instructions. SCE stands for Single Cycle Execute.
- If the system is in the AUTOMATIC mode, pressing this button will cause it to halt at the end of the current memory cycle. The system will remain in the AUTOMATIC mode unless that was the last cycle for the current instruction, in which case the system will be placed in the MANUAL mode.
- If the system is already in the MANUAL mode (only possible before the first cycle of the next instruction to be executed), pressing this button will cause it to execute the first memory cycle of the next instruction in AUTOMATIC mode and then halt while still in the AUTOMATIC mode.
- In either case, the MANUAL lamp will be on after each press of the SCE button.
- The AUTOMATIC lamp will remain on except after the last cycle of an instruction.
- Pressing the START button will resume continuous AUTOMATIC mode.
- Pressing the STOP/SIE button will resume single-step execution.
- Note that this button cannot be used to step through memory cycles when an I/O instruction is executing, except when doing output to the Typewriter and Paper Tape Punch devices. It also cannot be used to step through memory cycles when a Disk I/O instruction is loading the digits of its Disk Control Field.
To the left of the operational lamps and buttons are a set of round lamps and toggle switches. The settings of the toggle switches are preserved across emulator restarts.
There are four switches in this area, numbered 1 through 4. The state of these switches can be interrogated by Branch Indicator (BI, 46) and Branch No Indicator (BNI, 47) instructions, allowing a program to take alternate paths based on the switch settings.
The array of small round lamps in this area indicate "check" or error conditions caused by hardware and software issues.
- The first column of lamps is not used.
- The second column indicates Disk errors.
- Third column indicates parity and addressing errors within the CPU. The ADDR CHK lamp indicates a variety of errors including MAR parity errors, invalid memory address errors, and invalid opcode errors.
- The fourth column indicates non-Disk errors with I/O devices or with the transfer of data from a device into core memory.
- The fifth column indicates overflow errors detected by the CPU, including arithmetic (add/subtract) overflow and floating-point exponent overflow. The first lamp in this column is not used.
See the "1620 Console" section in the IBM 1620 Central Processing Unit, Model 2 manual for detailed explanations of each of these lamps and the Check Stop switches below.
Below the Check Indicator lamps are five switches that control how the system reacts to check conditions when they arise. The left-most of these switches is not used.
When one of these switches is in the PROGRAM position, detecting a check condition of the type indicated by the lamps in the column above it causes an indicator to be set internally, but the program does not halt. These indicators can be tested by the Branch Indicator (BI, 46) and Branch No Indicator (BNI, 47) instructions to select an alternate path for the program to follow.
When one of these switches is in the STOP position, detecting its type of check condition will cause the CPU to halt at the end of the instruction in which the condition was detected. The program can be resumed by pressing the START button. The internal indicator for the condition remains set until reset by a BI or BNI instruction, or by pressing the CHECK RESET button.
On the far left of the bottom panel is an Emergency Off switch. On a real 1620, the white section in the center of the switch could be pulled up to immediately shut off power to the entire 1620 system. Doing so could damage the system, and once the switch was pulled, a visit by an IBM Customer Engineer (CE) was required to reset the switch.
In the emulator, there is no need for an Emergency Off switch, but nonetheless, NEVER DOUBLE-CLICK THIS SWITCH!
The Control Panel supports two non-obvious diagnostic features. These features are intended primarily for debugging the emulator and running diagnostic programs, and are subject to change in the future.
The values of the 12 address registers can be viewed one at a time by selecting the register using the large rotary switch and pressing the DISPLAY MAR button, but this works only when the system is in MANUAL mode and can display only one register at a time.
Double-clicking the IBM logo on the left of the bar at the top of the Control Panel will toggle the visibility of the Debug View panel, which will display immediately above the AUTOMATIC/MANUAL/CHECK STOP lamps. This panel will show the decimal values of all 12 address registers, plus MAR and a register used for internal address manipulations, XBR. Viewing this panel could be useful when you are debugging a program or single-stepping with either of the STOP buttons.
CMEM is a file format (extension .cmem) developed by the IBM 1620 Jr. project at the Computer History Museum as a way to load core-memory images into a 1620 emulator. It has been used primarily as a way to load diagnostic routines into the system for execution.
The retro-1620 emulator supports both loading CMEM files into its memory and dumping the entire contents of its memory in CMEM format. To activate this feature, double-click the dark gray portion of the bar at the top of the Control Panel having the caption "DATA PROCESSING SYSTEM." Doing so will open the following dialog box over the Control Panel:

To load a CMEM file into memory, click the Browse... or Select File... button on the dialog. From the resulting file picker select the file you want to load. It must be in the CMEM format, which is discussed below. The load will only take place if the system is in MANUAL mode.
A load begins by clearing all of memory to zeroes. If the load is successful, the dialog box will simply close. If errors in the file are detected, an alert will pop up on the screen giving the number of errors and a description of the last one detected. The load will still have taken place, but any improperly-formatted digits in the file will be stored as zeroes.
Whether any errors occurred or not, the IR-1 register will be set to zero, and the BR_EXEC (Branch Execute) gate will be reset. No other registers or gates will be affected by the load process. You can press the START button if appropriate to start executing the image at address 0, or use the INSERT button to enter a branch (49) instruction to start execution of the image at a specified location.
To format the current contents of core memory as a CMEM file, click the Dump button on the dialog box. The emulator will open a temporary window, format the CMEM data in it, and close the dialog box. From the temporary window you can copy, save, or print the data on your local system as desired. When finished with the temporary window, simply close it.
A CMEM file is an ordinary ASCII text file. Lines in the file are processed as follows:
- Blank lines are ignored.
- Lines that begin with "/" are treated as comments and are ignored.
- Lines that begin with a 1-5 digit integer followed by a colon (:) are interpreted as data lines. The integer is the memory address at which the data in the line after the colon is to start loading. The format of the data after the colon is described below.
- Lines that begin with a colon (:) are also interpreted as data lines, but the starting address is implied to be the address of the last digit loaded plus one.
- Lines that begin with an asterisk (*) are interpreted as option settings. The two options currently defined are:
- invalid -- indicates that invalid hexadecimal digits in the data to be loaded (i.e., anything other than hex 0-9, A, C, or F) are accepted as is; otherwise invalid digits are considered to be an error.
- tabs -- this is followed by a comma- or space-delimited list of 1-relative tab stop positions that are to be loaded into the Typewriter.
- Any other lines are considered to be an error and are ignored.
The portion of a data line after the colon consists of a sequence of one- or two-digit hexadecimal numbers separated by one or more spaces. If the number has two digits, the first digit must be a zero or 1, and represents the flag bit for the digit. The second or only digit must have the case-insensitive value 0-9, A, C, or F, unless the *invalid setting has been specified, in which case hexadecimal values B, D, and E are also accepted.
Thus, a typical data line might look like this, which will load addresses 900-919 with the digit values after the colon:
00900: 0 1 0 8 4 0 0 9 1 14 0 1 0 8 4 0 0 19 12 14
When loading a CMEM file, retro-1620 ignores leading and trailing spaces in the lines.
When dumping a CMEM file, retro-1620 includes comment lines at the beginning with the date, time, selected register settings, and other system state. This allows the CMEM dump to serve as a basic system memory dump.
The dump also suppresses contiguous lines containing only zeroes, replacing each such run of lines with a single blank line. Since memory is cleared at the beginning of a CMEM load, suppressing these zero lines generally allows the dump file to be smaller.
The retro-1620 dump does not include either *invalid or *tabs settings lines, but may include hexadecimal B, D, or E digits if they are present in memory.