extra prints
This commit is contained in:
parent
043f333c7d
commit
26c999f8f4
2 changed files with 5 additions and 0 deletions
|
@ -132,6 +132,7 @@ impl Memory {
|
|||
}
|
||||
|
||||
fn set(&mut self, address: Address, data: u8) {
|
||||
println!("write addr: {:#X}, data: {:#X}", address, data);
|
||||
match address {
|
||||
0x0..0x100 => {
|
||||
if !self.bootrom_enabled {
|
||||
|
|
|
@ -31,6 +31,10 @@ impl CPU {
|
|||
unsafe { self.last_instruction_addr = self.state.pc.as_u16 };
|
||||
let opcode = self.next_opcode();
|
||||
self.last_instruction = opcode;
|
||||
println!(
|
||||
"exec {:#4X} from pc: {:#X}",
|
||||
opcode, self.last_instruction_addr
|
||||
);
|
||||
|
||||
match opcode {
|
||||
0x0 => {
|
||||
|
|
Loading…
Add table
Reference in a new issue