summaryrefslogtreecommitdiff
path: root/anim/src/disasm.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/disasm.zig')
-rw-r--r--anim/src/disasm.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/anim/src/disasm.zig b/anim/src/disasm.zig
index 6c28516..7f17ed6 100644
--- a/anim/src/disasm.zig
+++ b/anim/src/disasm.zig
@@ -17,6 +17,7 @@ const rows = @import("rows.zig");
const cursors = @import("cursor.zig");
const Recording = @import("Recording.zig");
const ties = @import("ties.zig");
+const map = @import("map.zig");
const context = @import("context.zig");
const Stage = @import("stage.zig").Stage;
const theme = ui.theme;
@@ -157,6 +158,7 @@ pub const Disasm = struct {
break :blk rec.register(at - 1, "rip");
};
+ if (shown.rows.len > 0) map.window(.disasm, shown.rows[0].addr, shown.rows[shown.rows.len - 1].addr);
var last_line: ?u32 = null;
// A source of many lines (SQLite's) has wider numbers, as wide as
// its largest: what is right of them moves right by as much.
@@ -182,6 +184,7 @@ pub const Disasm = struct {
covered -|= 1;
continue;
}
+ map.row(.disasm, row.addr, u, .{ .x = 0, .y = y, .w = box.w, .h = m.row });
const is_pc = row.addr == pc[if (going >= 0.5) 1 else 0];
const was = if (is_pc) null else ran[j];
if (was) |r| lit.trail(c.mark, y, r.k);