Function disasm6502::from_addr_array
[−]
[src]
pub fn from_addr_array(
bytes: &[u8],
start_address: u16
) -> Result<Vec<Instruction>>
Disassembles data from array of bytes using a custom start address.
Examples
extern crate disasm6502; let bytes = vec![0x05, 0x0B, 0x6C, 0x01, 0x02]; // first instruction will be located at $0800 let instructions = disasm6502::from_addr_array(&bytes, 0x0800).unwrap();