added some functions to the stdlib

This commit is contained in:
igor
2026-03-18 15:27:01 +01:00
parent 78bf6c132f
commit cda34e61bd
3 changed files with 82 additions and 0 deletions

View File

@@ -58,6 +58,13 @@ word memdump
end
end
#memdump_bytes [*, len | addr] -> [* | addr]
word memdump_bytes
for
dup c@ puti cr 1 +
end
end
#realloc [*, addr, old_len | new_len] -> [* | new_addr]
word realloc
2 pick swap alloc