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

  1. Memory
  2. @ a -- n Set n to value at address a
  3. ! n a -- Store n in address a
  4. ? a -- Print value of addr a
  5. +! n a -- Increase value of addr a by n
  6. C@ a -- c Set c to byte at address a
  7. C@+ a -- a+1 c Fetch c from a and inc a.
  8. C! c a -- Store byte c in address a
  9. CURRENT -- a Set a to wordref of last added entry.
  10. CURRENT* -- a A pointer to active CURRENT*. Useful
  11. when we have multiple active dicts.
  12. HERE -- a Push HERE's address
  13. H@ -- a HERE @
  14. MOVE a1 a2 u -- Copy u bytes from a1 to a2, starting
  15. with a1, going up.