We now study an implementation of the I/O interface described earlier for the terminal device. We first study the hardware, and then the drivers and interrupt routines for the device.