feat(sched): add HBlank and VBlank events to the scheduler

This commit is contained in:
2022-10-21 05:11:49 -03:00
parent d495f5b4c5
commit d54c8df7b3
6 changed files with 25 additions and 13 deletions

View File

@@ -18,14 +18,14 @@ const arm_lut: [0x1000]InstrFn = populate();
pub const Arm7tdmi = struct {
r: [16]u32,
sch: *Scheduler,
sched: *Scheduler,
bus: *Bus,
cpsr: CPSR,
pub fn init(scheduler: *Scheduler, bus: *Bus) @This() {
pub fn init(sched: *Scheduler, bus: *Bus) @This() {
return .{
.r = [_]u32{0x00} ** 16,
.sch = scheduler,
.sched = sched,
.bus = bus,
.cpsr = .{ .raw = 0x0000_00DF },
};