added basic cartridge functions

This commit is contained in:
Lauchmelder 2022-08-23 19:40:48 +02:00
parent a03d23097b
commit d7bd8a6c24
5 changed files with 69 additions and 2 deletions

View file

@ -41,6 +41,9 @@ impl CPU
self.x = 0;
self.y = 0;
self.sp = 0xFD;
// TODO: This is just for the nestest.nes
self.pc = 0xC000;
}
pub fn execute(&mut self)
@ -51,7 +54,7 @@ impl CPU
match (opcode)
{
_ => panic!("Unimplemented opcode {}", opcode)
_ => panic!("Unimplemented opcode {:X}", opcode)
}
}
}