Section 18.2: How I/O actually works (Frame 3)                     [prev][home][next]

When the CPU wishes to send a command to the peripheral, it writes a value into the command port. There may be many possible commands. Here are the most important, encoded using both numbers and words:

001 START begin reading the tape and transferring data to the CPU
010 HALT stop reading the tape
011 REWIND physically rewind the tape back to the beginning
100 ALERT flash a light on the external case of the tape record to alert the human who is operating the device
101 QUERY have the tape reader tell the CPU what state it is in
110 PAUSE suspend sending data until further notice