refactor cpu execution loop and clean up debug helpers

This commit is contained in:
2026-08-05 18:20:15 +02:00
parent 629b6987cf
commit fe1866358d
+1 -8
View File
@@ -1475,16 +1475,9 @@ pub fn CpuWithHook(
self.state = .stopped;
}
}
// Draft tracing helper for debugging initial execution loop
pub fn debugTraceStep(self: *Self) void {
const std = @import("std");
std.debug.print("CPU Step: PC={X:04} A={X:02} X={X:02} Y={X:02}\n", .{
self.registers.pc, self.registers.a, self.registers.x, self.registers.y,
});
}
};
}