style(scheduler): rename scheduler event handlers

This commit is contained in:
2022-10-10 21:06:29 -03:00
parent bcacac64df
commit fd38fd6506
9 changed files with 19 additions and 19 deletions

View File

@@ -288,7 +288,7 @@ pub const Clock = struct {
cpu.sched.push(.RealTimeClock, 1 << 24); // Every Second
}
pub fn updateTime(self: *Self, late: u64) void {
pub fn onClockUpdate(self: *Self, late: u64) void {
self.cpu.sched.push(.RealTimeClock, (1 << 24) -| late); // Reschedule
const now = DateTime.now();

View File

@@ -154,7 +154,7 @@ fn Timer(comptime id: u2) type {
// DMA Sound Things
if (id == 0 or id == 1) {
cpu.bus.apu.handleTimerOverflow(cpu, id);
cpu.bus.apu.onDmaAudioSampleRequest(cpu, id);
}
// Perform Cascade Behaviour