Added basic putuint to the standard library, i need to implement proper 0 handling but that probably needs and if statement

This commit is contained in:
cannoli-fruit 2026-07-26 01:48:43 -04:00
commit 5b7dd220ae
6 changed files with 94 additions and 2 deletions

6
flagpole/tests/div.fp Normal file
View file

@ -0,0 +1,6 @@
$inc fvmstd.fp
proc main
8 2 u/
48 u+ :putchar :newline
endproc

19
flagpole/tests/gt.fp Normal file
View file

@ -0,0 +1,19 @@
$inc fvmstd.fp
proc main
5 3 u>
48 u+
"5 3 u>: " :puts
:putchar :newline
3 3 u>
48 u+
"3 3 u>: " :puts
:putchar :newline
3 5 u>
48 u+
"3 5 u>: " :puts
:putchar :newline
endproc

View file

@ -0,0 +1,6 @@
$inc fvmstd.fp
proc main
"Hello World!" :puts :newline
23 :putuint
endproc