Section 11.6: OS modes and instructions (Frame 8)                     [prev][home][next]

Fig. 11.6.1 shows this calling of a system subroutine via a TRP. The call is equivalent to the C version of the UNIX system call read:

n = read(fd, buf, m);

which requests the operating system to read up to m bytes from the I/O device pointed to by fd and put it into the character array buf.


Fig. 11.6.1: Read system call; PUSH #3 stands for 3 parameters;
TRP means to call system call #2 (which is read)