Implemented getuint and fixed a bug with variables
This commit is contained in:
parent
441d737cf1
commit
022e812c1d
7 changed files with 75 additions and 1 deletions
7
flagpole/tests/ascii.fp
Normal file
7
flagpole/tests/ascii.fp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$inc fvmstd.fp
|
||||
|
||||
proc main
|
||||
:getchar
|
||||
:putuint
|
||||
:newline
|
||||
endproc
|
||||
7
flagpole/tests/cat.fp
Normal file
7
flagpole/tests/cat.fp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$inc fvmstd.fp
|
||||
|
||||
proc main
|
||||
while 1 do
|
||||
:getchar :putchar
|
||||
endwhile
|
||||
endproc
|
||||
8
flagpole/tests/numinp.fp
Normal file
8
flagpole/tests/numinp.fp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
$inc fvmstd.fp
|
||||
|
||||
proc main
|
||||
"Sum Program" :puts :newline
|
||||
:getuint
|
||||
:getuint u+
|
||||
:putuint :newline
|
||||
endproc
|
||||
Loading…
Add table
Add a link
Reference in a new issue