io.is_a_directory, octal literal constants

This commit is contained in:
2026-03-20 15:35:35 +01:00
parent efe9dfe238
commit 3efbb3ecd1
10 changed files with 86 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
// needs to be compiled with -m -C="-lraylib"
// needs to be compiled with -m -C "-lraylib"
extern InitWindow
extern SetTargetFPS
extern WindowShouldClose
@@ -45,6 +45,15 @@ func chip8_create[] : CHIP8
return c
func chip8_free[c: CHIP8] : void
mem.free(c->memory)
array.free(c->stack)
mem.free(c->reg)
array.free(c->keyboard)
mem.free(c->display)
array.free(c->keyboard_map)
mem.free(c)
func chip8_disassemble[c: CHIP8, ins_count: i64] : void
for i in 0..ins_count
io.printf("0x%x: ", c->pc)
@@ -264,15 +273,6 @@ func chip8_step[c: CHIP8] : void
for i in 0..x+1
c->reg[i] = c->memory[c->I + i]
func chip8_free[c: CHIP8] : void
mem.free(c->memory)
array.free(c->stack)
mem.free(c->reg)
array.free(c->keyboard)
mem.free(c->display)
array.free(c->keyboard_map)
mem.free(c)
func main[argc: i64, argv: ptr] : i64
let path: str = 0 as str
let disassemble: bool = false