nand2/07_Operating_System/02_UART_Test/Sys.jack

18 lines
322 B
Plaintext
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* A library that supports various program execution services.
*/
class Sys {
/** Performs all the initializations required by the OS. */
function void init() {
do UART.init(4098);
do UART.writeChar(71);
do UART.writeChar(79);
while (true){
do UART.writeChar(UART.readChar());
}
return;
}
}