aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2017-11-09 02:06:54 -0500
committerDeterminant <ted.sybil@gmail.com>2017-11-09 02:06:54 -0500
commitb20adb44931b1343b599f22f75383bb92c4a36e7 (patch)
tree044df9a5af4c83f73a00e28eed8c637746cc603c /src/main.rs
parent3313ffa8bd9d276fb25d37fe799503f7ec617938 (diff)
finish 6502 instruction emulation
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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);
}