2 io.c -- Test the serial I/O.
14 /* test the lowest level output function */
15 result
= outbyte ('&');
22 /* try writing a string */
23 result
= write ("Write Test:\n", 12);
24 print ("result was ");
33 /* try the print() function too */
34 result
= print ("Print Test:\n");
35 print ("result was ");
44 /* try the iprintf() function too */
45 result
= print ("Iprintf Test:\n");
46 print ("result was ");
55 /* try to read a string */
56 print ("Type 5 characters");
59 result
= read (0, buf
, 5);
67 /* clear everything out */