Implemented getuint and fixed a bug with variables

This commit is contained in:
cannoli-fruit 2026-07-26 17:49:29 -04:00
commit 022e812c1d
7 changed files with 75 additions and 1 deletions

7
flagpole/tests/ascii.fp Normal file
View file

@ -0,0 +1,7 @@
$inc fvmstd.fp
proc main
:getchar
:putuint
:newline
endproc

7
flagpole/tests/cat.fp Normal file
View file

@ -0,0 +1,7 @@
$inc fvmstd.fp
proc main
while 1 do
:getchar :putchar
endwhile
endproc

8
flagpole/tests/numinp.fp Normal file
View file

@ -0,0 +1,8 @@
$inc fvmstd.fp
proc main
"Sum Program" :puts :newline
:getuint
:getuint u+
:putuint :newline
endproc