Skip to main content

disassemble_at

Function disassemble_at 

Source
pub fn disassemble_at<F: Fn(u16) -> u8>(
    peek: F,
    pc: u16,
    count: usize,
) -> Vec<DisasmLine>
Expand description

Disassemble count instructions starting at pc. peek returns the byte at any CPU bus address without side effects.

Unknown opcodes are rendered as .byte $XX with length 1 so the listing can keep walking forward.