MCPcopy Create free account
hub / github.com/RIP-Comm/clementine / Disassembler

Class Disassembler

ui/src/disassembler.rs:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45/// Maximum number of entries to process per frame to avoid UI lag.
46const MAX_ENTRIES_PER_FRAME: usize = 10000;
47
48pub struct Disassembler {
49 /// Handle to the emulator (contains the disasm channel consumer).
50 emu_handle: Arc<Mutex<EmuHandle>>,
51 /// Retained lines, stored separately to evict the oldest entry cheaply.
52 lines: VecDeque<String>,
53 /// Pre-built display text (avoids rebuilding every frame).
54 display_text: String,
55 /// Tracks whether the CPU is currently pushing instructions to us, so we
56 /// only send a toggle command when the window opens or closes.
57 enabled: bool,
58}
59
60impl Disassembler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected