chore: update to lastest zig
This commit is contained in:
parent
1bd9964f58
commit
21c897962a
|
@ -1 +1 @@
|
||||||
Subproject commit caa31ef8783695f0441b1f6812985e6a46b32c96
|
Subproject commit a8c45025385884cfc60996a3b94f1f4af9d2888d
|
|
@ -87,6 +87,9 @@ pub fn parse(self: *Self, allocator: Allocator, emu: Emulator) !String {
|
||||||
{
|
{
|
||||||
var i: u32 = 0;
|
var i: u32 = 0;
|
||||||
while (i < len) : (i += 1) {
|
while (i < len) : (i += 1) {
|
||||||
|
const value = emu.read(addr + i);
|
||||||
|
log.debug("read 0x{X:0>2} from 0x{X:0>8}", .{ value, addr + i });
|
||||||
|
|
||||||
// writes the formatted integer to the buffer, returns a slice to the buffer but we ignore that
|
// writes the formatted integer to the buffer, returns a slice to the buffer but we ignore that
|
||||||
_ = std.fmt.bufPrintIntToSlice(ret[i * 2 ..][0..2], emu.read(addr + i), 16, .lower, .{ .fill = '0', .width = 2 });
|
_ = std.fmt.bufPrintIntToSlice(ret[i * 2 ..][0..2], emu.read(addr + i), 16, .lower, .{ .fill = '0', .width = 2 });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue