fix: implement 0xff41 and fix CALL instruciton

This commit is contained in:
2021-01-18 02:22:45 -06:00
parent 386a780a6f
commit 9203b61533
5 changed files with 84 additions and 19 deletions

View File

@@ -70,10 +70,10 @@ impl Cpu {
let hl = self.register_pair(RegisterPair::HL);
let sp = self.register_pair(RegisterPair::SP);
println!(
"A: {:#04X} | BC: {:#06X} | DE: {:#06X} | HL: {:#06X} | SP: {:#06X} | {}",
a, bc, de, hl, sp, flag
);
// println!(
// "A: {:#04X} | BC: {:#06X} | DE: {:#06X} | HL: {:#06X} | SP: {:#06X} | {}",
// a, bc, de, hl, sp, flag
// );
// Get info from serial port
// if self.bus.read_byte(0xFF02) == 0x81 {