update to structs

This commit is contained in:
IgorCielniak
2026-01-21 14:26:30 +01:00
parent 805f8e26a5
commit ff6af0b783
4 changed files with 15 additions and 19 deletions

View File

@@ -8,10 +8,10 @@ word test-mem-alloc
4096 free # free the memory
end
struct: Point
struct Point
field x 8
field y 8
;struct
end
word main
32 alloc # allocate 32 bytes (enough for a Point struct)

View File

@@ -27,10 +27,10 @@ macro defadder 3
defconst MAGIC 99
defadder add13 5 8
struct: Point
struct Point
field x 8
field y 8
;struct
end
word test-add
5 7 + puti cr