Input Output Instructions |
The simulator has 16 ports numbered from 00 to 0F. These are connected to simulated, outside-world peripherals.
Assembler | Machine Code | Explanation |
IN 07 | F0 07 | Input from Port 07. F0 is the machine instruction for Input. 07 is the port number. |
OUT 01 | F1 01 | Output to Port 01. F1 is the machine instruction for Output. 01 is the port number. |
Port |
Description |
00 |
Input from port 00 for simulated keyboard input. |
01 |
Output to port 01 to control the traffic lights. |
02 |
Output to port 02 to control the seven segment displays. |
03 |
Output to port 03 to control the heater. Input from port 03 to sense the thermostat state. |
04 |
Output to port 04 to control the snake in the maze. |
05 |
Output to port 05 to control the stepper motor. |
06 |
Output to port 06 to control the lift. |
07 |
Output to port 07 to make the keyboard visible. Input from port 07 to read the keyboard ASCII code. |
08 |
Output to port 08 to make the numeric keypad visible. Input from port 08 to read from the numeric keypad. |
09-0F | Unused |
© C Neil Bauers 2003