tmp: implement mechanisms for a emu reset fn (currently crashes)

This commit is contained in:
2023-02-23 22:12:06 -06:00
parent 3fff4fd742
commit d985eac0fc
15 changed files with 131 additions and 30 deletions

View File

@@ -1,13 +1,13 @@
const Self = @This();
timer: u9,
timer: u9 = 0,
pub fn create() Self {
return .{ .timer = 0 };
return .{};
}
pub fn reset(self: *Self) void {
self.timer = 0;
self.* = .{};
}
pub fn tick(self: *Self, enabled: bool, ch_enable: *bool) void {