Logo
Explore Help
Register Sign In
IgorCielniak/l2
1
0
Fork 0
You've already forked l2
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
23197857026ea91733c91c19558c92339e6e3bbc
l2/mem.sl

9 lines
106 B
Plaintext
Raw Normal View History

simple implementation of alloc and free testes with structs
2025-12-24 17:46:04 +01:00
import stdlib/stdlib.sl
import stdlib/io.sl
removed p! and p@ and added 'mem' that just pushes the addr os the persistent memory on to the stack and than you can write/read using standard ! and @ nd write at an offset uaing pointer arithmetic
2025-12-28 11:46:01 +01:00
import stdlib/debug.sl
simple implementation of alloc and free testes with structs
2025-12-24 17:46:04 +01:00
removed p! and p@ and added 'mem' that just pushes the addr os the persistent memory on to the stack and than you can write/read using standard ! and @ nd write at an offset uaing pointer arithmetic
2025-12-28 11:46:01 +01:00
: main
mem dup 5 swap !
@ puti cr
simple implementation of alloc and free testes with structs
2025-12-24 17:46:04 +01:00
;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 13ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API