stack allocated structs

This commit is contained in:
2026-05-20 13:59:08 +02:00
parent 284bc61f24
commit 48c58c0709
6 changed files with 42 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ struct CHIP8
keyboard_map: Array
func chip8_create[] : CHIP8
let c = new CHIP8
let c = new* CHIP8
c->memory = mem.alloc(4096)
mem.zero(c->memory, 4096)
c->display = mem.alloc(64*32)