diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 3544029..87684a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ mod mos6502; use mos6502::disasm; fn main() { + /* let code = [0xa9, 0x01, 0x8d, 0x00, 0x02, 0xa9, 0x05, 0x8d, 0x01, 0x02, 0xa9, 0x08, 0x8d, 0x02, 0x02 ]; let code2 = [0xa9, 0x03, 0x4c, 0x08, 0x06, 0x00, 0x00, 0x00, 0x8d, 0x00, 0x02 ]; let dasm = disasm::Disassembler::new(code2.iter()); @@ -12,4 +13,7 @@ fn main() { let c = 0x08; let d = 0x06; println!("{}", disasm::parse(code2[0], &[a, b, c, d])); + */ + let mut mem = mos6502::CPUMemory::new(); + let cpu = mos6502::CPU::new(&mut mem); } |