diff --git a/test/window.ul.ir b/test/window.ul.ir index c133112..9a72395 100644 --- a/test/window.ul.ir +++ b/test/window.ul.ir @@ -7,7 +7,7 @@ global const byte WHITE = 255 function main () # Open screen # use load immediate because it is a pointer to a string, not a value - plex screen + plex screen is $0 load_address &screen_namespace -> $18 int mode is $11 load_immediate 0 -> mode @@ -78,12 +78,12 @@ function pln (str message is $0) int nl_length is $4 int mode is $5 - load_heap_immediate "/dev/term/0" -> term # get terminal device + load_address &terminal_namespace -> term # get terminal device load_immediate 0 -> mode syscall OPEN term mode -> term strlen message -> msg_length syscall WRITE term message msg_length - load_heap_immediate "\n" -> nl + load_address &new_line -> nl strlen nl -> nl_length syscall WRITE term nl nl_length - return \ No newline at end of file + return