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