Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
722B

  1. I/O
  2. (parse) a -- n Parses string at a as a number and push the
  3. result in n as well as whether parsing was a
  4. success in f (false = failure, true =
  5. success)
  6. (parse*) -- a Variable holding the current pointer for
  7. system number parsing. By default, (parse).
  8. (print) a -- Print string at addr a.
  9. . n -- Print n in its decimal form
  10. .x n -- Print n's LSB in hex form. Always 2
  11. characters.
  12. .X n -- Print n in hex form. Always 4 characters.
  13. Numbers are never considered negative.
  14. "-1 .X" --> ffff
  15. (cont.)