Listing 3 while (1) { Receive new command; if (command is a read request) { Read the location specified in the command; Transmit the value to the PC; } else if (command is a write request) { Write the provided data to the specified location; } }