From ebb3de3784da6e0c3f24d7ed91af9e6bee2aad12 Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Tue, 19 May 2026 08:05:43 +0200 Subject: [PATCH] Small fix to display buffer and new rom addition. --- src/machine/machine.odin | 2 +- src/main.odin | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/machine/machine.odin b/src/machine/machine.odin index 41c3967..89a9cc1 100644 --- a/src/machine/machine.odin +++ b/src/machine/machine.odin @@ -18,7 +18,7 @@ System :: struct { // PC program counter pc: u16, // 64x32-pixel monochrome display - display: [64][32]u8, + display: [32][64]u8, keypad: [16]bool, delay_timer: u8, sound_timer: u8, diff --git a/src/main.odin b/src/main.odin index 56ee903..204c887 100644 --- a/src/main.odin +++ b/src/main.odin @@ -23,13 +23,14 @@ main :: proc() { system := chip.init() // load rom, hardcoded for now, will eventually be cli or gui - err := chip.load_rom(&system, "./2-ibm-logo.ch8") + // err := chip.load_rom(&system, "./2-ibm-logo.ch8") + err := chip.load_rom(&system, "./1-chip8-logo.ch8") if err != nil { panic("failed to load rom!") } // start the cycle - chip.init_display_and_cycle(&system) + chip.run_system(&system) when DEV { if len(track.allocation_map) > 0 {