From 2e54be76d67b6390b4fa57721706aeb0368516e5 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:02 -0300 Subject: [PATCH] chore: rename skipBios to fastBoot --- src/cpu.zig | 2 +- src/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu.zig b/src/cpu.zig index 1839ed0..66f2f30 100644 --- a/src/cpu.zig +++ b/src/cpu.zig @@ -149,7 +149,7 @@ pub const Arm7tdmi = struct { self.cpsr.mode.write(@enumToInt(next)); } - pub fn skipBios(self: *Self) void { + pub fn fastBoot(self: *Self) void { self.r[0] = 0x08000000; self.r[1] = 0x000000EA; // GPRs 2 -> 12 *should* already be 0 initialized diff --git a/src/main.zig b/src/main.zig index c58106c..1629976 100644 --- a/src/main.zig +++ b/src/main.zig @@ -41,7 +41,7 @@ pub fn main() anyerror!void { defer bus.deinit(); var cpu = Arm7tdmi.init(&scheduler, &bus); - cpu.skipBios(); + cpu.fastBoot(); // Initialize SDL const status = SDL.SDL_Init(SDL.SDL_INIT_VIDEO | SDL.SDL_INIT_EVENTS | SDL.SDL_INIT_AUDIO);