Skip to content

Commit 8cf94ef

Browse files
committed
foo
1 parent 181e182 commit 8cf94ef

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/src/crash.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,26 @@ pub fn fuzz() {
7878
// emu.memory.iram_raw[clear_count+2] = 5;
7979
// emu.memory.iram_raw[clear_count+3] = 5;
8080

81-
for _ in 0..100 {
81+
// set framecounter, vramrow
82+
83+
for _ in 0..30 {
8284
if emu.memory.iram_raw[play_state] == 5 || emu.memory.iram_raw[p1_play_state] == 5 {
8385
break;
8486
}
87+
88+
let address = ((emu.registers.s) as u16) + 0x0100;
89+
let address1 = ((emu.registers.s) as u16) + 0x0101;
90+
91+
8592
println!("{}", emu.registers.pc);
93+
emu.memory.iram_raw[0x100..0x200].iter().for_each(|b| {
94+
print!("{:x} ", b);
95+
});
96+
println!("");
97+
print!("{:x} ", emu.memory.iram_raw[address as usize]);
98+
println!("{:x}", emu.memory.iram_raw[address1 as usize]);
99+
println!("{:x}", emu.registers.s);
100+
println!("{}", emu.ppu.current_scanline);
86101
emu.run_until_vblank();
87102
}
88103

0 commit comments

Comments
 (0)