SlaveX01.lab. DownloadDownload the source code, enter the project directory, make and then bochs, you can see the following interface:
Just a few words. OK! Press f2 to switch to the second terminal. The interface is as follows:
Of course, you can switch the third terminal by pressing F3, but it is basically the same as the second one, so it will not waste space.
Input and Output, involving the keyboard and display. The keyboard is mainly used to operate the 8048 encoder and the 8042 controller. The monitor is the registers that operate the VGA system. In all aspects, it is a process of gradual improvement and accumulation. Yu Yuan explained in detail that when I switched tty, ALT + F1 was used, but my VM did not respond, so I had to change it to F1.
A simple distinction is made between tasks and user processes.
Add the system to call write to implement the printing function. However, when A, B, and C processes run, tty feels a little out of control, which is normal.
It took a day and finally it was OK.
X01. OS. 10: Input and Output