Please use a while-loop to implement step 4 in Figure 5.7. How do you use the information in the status register to implement step 2? Please use a while loop to write down the pseudo-code.
EDIT: There is no existing code. Everything you need to answer the question is right here.
FIGURE 5.7 Polling I/O Read Operation
read(device, Data)
System Interface
read function
write function
?
3 4
Hardware Interface
Command
Status
Data
Device Controller