diff --git a/src/lib.zig b/src/lib.zig index 660dba3..c05ce9e 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -33,7 +33,7 @@ pub const Emulator = struct { pub fn writeImpl(pointer: *anyopaque, addr: u32, value: u8) void { const self = @ptrCast(Ptr, @alignCast(alignment, pointer)); - return @call(.{ .modifier = .always_inline }, ptr_info.Pointer.child.read, .{ self, addr, value }); + return @call(.{ .modifier = .always_inline }, ptr_info.Pointer.child.write, .{ self, addr, value }); } pub fn registersImpl(pointer: *anyopaque) [16]u32 {