From e604880b4eed0d5449a54ca8a49d89cda0b78820 Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Tue, 26 May 2026 07:48:47 +0200 Subject: [PATCH] Small cleanup formatting and new rom locations. --- src/machine/display.odin | 47 ++++++++++++++++++++-------------------- src/main.odin | 5 +++-- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/machine/display.odin b/src/machine/display.odin index 9c384ef..d4e4666 100644 --- a/src/machine/display.odin +++ b/src/machine/display.odin @@ -12,38 +12,37 @@ CYCLES_PER_FRAME :: 12 // Display will handle all the screen drawing with raylib etc run_system :: proc(s: ^System) { - rl.InitWindow(SCREEN_WITDH, SCREEN_HEIGHT, "chip8") + rl.InitWindow(SCREEN_WITDH, SCREEN_HEIGHT, "chip8") - // Cap at 60hz/60fps - rl.SetTargetFPS(60) + rl.SetTargetFPS(60) - for !rl.WindowShouldClose() { - rl.BeginDrawing() + for !rl.WindowShouldClose() { + rl.BeginDrawing() + rl.ClearBackground(rl.BLACK) - rl.ClearBackground(rl.BLACK) + // Do a cpu cycle + // Cap at 60hz/60fps + for _ in 0..