refactor cpu execution loop and clean up debug helpers
This commit is contained in:
@@ -1475,16 +1475,9 @@ pub fn CpuWithHook(
|
|||||||
self.state = .stopped;
|
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,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user