1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-15 05:28:05 +11:00
collapseos/blk/050

17 lines
748 B
Plaintext
Raw Normal View History

Memory
@ a -- n Set n to value at address a
! n a -- Store n in address a
? a -- Print value of addr a
+! n a -- Increase value of addr a by n
2020-05-10 22:40:49 +10:00
BIT@ b a -- f Get bit b from addr a.
BIT! f b a -- Set bit b to f in addr a.
C@ a -- c Set c to byte at address a
2020-04-17 08:58:11 +10:00
C@+ a -- a+1 c Fetch c from a and inc a.
2020-05-07 10:37:08 +10:00
C@- a -- a-1 c Fetch c from a and dec a.
C! c a -- Store byte c in address a
C!+ c a -- a+1 Store byte c in a and inc a.
2020-05-07 10:37:08 +10:00
C!- c a -- a-1 Store byte c in a and dec a.
CURRENT -- a Set a to wordref of last added entry.
2020-04-28 11:22:06 +10:00
(cont.)