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
624B

  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. (print) a -- Print string at addr a. Stops at 0x0 or 0xd.
  7. . n -- Print n in its decimal form
  8. .x n -- Print n's LSB in hex form. Always 2
  9. characters.
  10. .X n -- Print n in hex form. Always 4 characters.
  11. Numbers are never considered negative.
  12. "-1 .X" --> ffff
  13. (cont.)