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

  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. BIT@ b a -- f Get bit b from addr a.
  7. BIT! f b a -- Set bit b to f in addr a.
  8. C@ a -- c Set c to byte at address a
  9. C@+ a -- a+1 c Fetch c from a and inc a.
  10. C@- a -- a-1 c Fetch c from a and dec a.
  11. C! c a -- Store byte c in address a
  12. C!+ c a -- a+1 Store byte c in a and inc a.
  13. C!- c a -- a-1 Store byte c in a and dec a.
  14. CURRENT -- a Set a to wordref of last added entry.
  15. (cont.)