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 {