Skip to content

Commit

Permalink
Remove SuperFX debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Jun 8, 2024
1 parent 1f25496 commit c151840
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/cpu_gsu/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ impl CpuGsu {
match (instr, alt1, alt2) {
(0x00, false, false) => {
// STOP
println!("sfx stopped");
self.pixelcache_flush();
self.regs
.write_flags(&[(Flag::G, false), (Flag::IRQ, true)]);
Expand Down
8 changes: 0 additions & 8 deletions src/snes/coprocessor/superfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ impl BusMember<Address> for SuperFX {

// If PC (R15) is written, start execution
if addr & 1 != 0 && !cpu.regs.test_flag(Flag::G) {
println!("SuperFX go {:02X} {:04X}", cpu.regs.pbr, newval);
cpu.regs.get_clr_r15_shadow();
cpu.regs.write_flags(&[(Flag::G, true)]);
}
Expand All @@ -129,13 +128,6 @@ impl BusMember<Address> for SuperFX {
}
0x3030 => {
let curval = cpu.regs.read(Register::SFR);
if curval & 0x20 == 0 && val & 0x20 != 0 {
println!(
"SuperFX resume {:02X} {:04X}",
cpu.regs.pbr,
cpu.regs.read(Register::R15)
);
}
Some(
cpu.regs
.write(Register::SFR, (curval & 0xFF00) | (val as u16)),
Expand Down

0 comments on commit c151840

Please sign in to comment.