mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 21:18:08 +11:00
17 lines
722 B
Plaintext
17 lines
722 B
Plaintext
|
I/O
|
||
|
|
||
|
(parse) a -- n Parses string at a as a number and push the
|
||
|
result in n as well as whether parsing was a
|
||
|
success in f (false = failure, true =
|
||
|
success)
|
||
|
(parse*) -- a Variable holding the current pointer for
|
||
|
system number parsing. By default, (parse).
|
||
|
(print) a -- Print string at addr a.
|
||
|
. n -- Print n in its decimal form
|
||
|
.x n -- Print n's LSB in hex form. Always 2
|
||
|
characters.
|
||
|
.X n -- Print n in hex form. Always 4 characters.
|
||
|
Numbers are never considered negative.
|
||
|
"-1 .X" --> ffff
|
||
|
(cont.)
|