Added IOREQ_MILLIS and IOREQ_GETC to get current time and poll keyboard.

IOREQ_GETC implemented inefficiently, but is fine for demo purposes.
This commit is contained in:
Toby Jaffey 2025-12-07 20:29:10 +00:00
parent af3b48cb01
commit 9e6f6c5a67
3 changed files with 86 additions and 7 deletions

View file

@ -1,5 +1,5 @@
all:
gcc -Wall -Werror -pedantic -std=c99 -DUVM32_MEMORY_SIZE=16384 -I../uvm32 -o host ../uvm32/uvm32.c host.c
gcc -Wall -Werror -pedantic -std=c99 -O2 -DUVM32_MEMORY_SIZE=65535 -I../uvm32 -o host ../uvm32/uvm32.c host.c
clean:
rm -f host