diff options
author | Determinant <ted.sybil@gmail.com> | 2017-11-11 00:14:16 -0500 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2017-11-11 00:14:16 -0500 |
commit | 42b7d024c3b5e8d76cbf091cec12ee9ab732628a (patch) | |
tree | 5ffaa30d9536eb4dbb832abb030db4aaa9842967 /src/main.rs | |
parent | 9eba033073c5c11c441f1ddd573af8c7f006ac2c (diff) |
finish most part of ppu
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 87684a3..e429932 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,12 @@ +extern crate core; +mod memory; +mod ppu; 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()); + let dasm = mos6502::disasm::Disassembler::new(code2.iter()); for l in dasm { println!("{}", l); } @@ -14,6 +16,6 @@ fn main() { let d = 0x06; println!("{}", disasm::parse(code2[0], &[a, b, c, d])); */ - let mut mem = mos6502::CPUMemory::new(); + let mut mem = memory::CPUMemory::new(); let cpu = mos6502::CPU::new(&mut mem); } |