added a buffer of 64 bytes for some easily accesible persistent storage accesable via p@ and p!

This commit is contained in:
IgorCielniak
2025-12-26 15:50:37 +01:00
parent 7d6c1fb0d3
commit 357434991e
3 changed files with 38 additions and 0 deletions

9
p.sl Normal file
View File

@@ -0,0 +1,9 @@
import stdlib/stdlib.sl
import stdlib/io.sl
: main
12345 0 p! # store 12345 at offset 0
0 p@ puti cr # read and print value at offset 0
67890 8 p! # store 67890 at offset 8
8 p@ puti cr # read and print value at offset 8
;