update to structs
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user