diff options
Diffstat (limited to 'anim/scenes/gallery.zig')
| -rw-r--r-- | anim/scenes/gallery.zig | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/anim/scenes/gallery.zig b/anim/scenes/gallery.zig index 7c480ec..9852125 100644 --- a/anim/scenes/gallery.zig +++ b/anim/scenes/gallery.zig @@ -230,7 +230,7 @@ fn rowsPage(u: ui.Ui, p: *const Pages) void { _ = rows.reg(panel, row, 880, "rdi", m, regs.rdi, .{ .first = .struck }); _ = rows.reg(panel, 2 * row, 880, "rax", m, regs.rax, .{ .first = .ember }); _ = rows.reg(panel, 3 * row, 880, "rbp", m, regs.rbp, .{ .read = 1, .read_shows = 1 }); - rows.rip(panel, 4 * row, 880, m, regs.rip, regs.eflags, 1 << 6, 1, 0); + rows.rip(panel, 4 * row, 880, m, regs.rip, regs.eflags, 1 << 6, 1, 0, 1 << 6, 1); y = 380; title(u, 64, y, "slot"); @@ -265,6 +265,20 @@ fn rowsPage(u: ui.Ui, p: *const Pages) void { const long = " a line of source longer than the panel has room for, which is cut at its end"; rows.line(panel, 3 * row, 880, 9, 0, long, styles[0..long.len], .plain); + y = 860; + title(u, 64, y, "insn"); + note(u, 140, y, "operands without size words; a width where no register says it; padding faint"); + y += 12; + panel = u.moved(64, y); + const Insn = canim.Disasm.Row; + for ([_]Insn{ + .{ .addr = 0x100191b, .len = 5, .text = "nop dword ptr [rax + rax]" }, + .{ .addr = 0x100192a, .len = 4, .text = "mov qword ptr [rax + 8], rcx" }, + .{ .addr = 0x7ffff7d10f0e, .len = 7, .text = "cmp byte ptr [rip + 0x11018b], 0" }, + .{ .addr = 0x7ffff7d10f94, .len = 7, .text = "mov dword ptr [rbp - 0x60], 0x10" }, + .{ .addr = 0x7ffff7d10f9b, .len = 4, .text = "movsxd r10, dword ptr [rbp - 0x30]" }, + }, 0..) |one, i| canim.disasm.plainRow(panel, one, @as(f32, @floatFromInt(i)) * row); + y = 750; title(u, 64, y, "bytes"); note(u, 160, y, "runs from the types; marks per run: struck, read, held; read as their types: a char, a bool, an int, a pointer"); |
