File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,26 @@ pub fn fuzz() {
78
78
// emu.memory.iram_raw[clear_count+2] = 5;
79
79
// emu.memory.iram_raw[clear_count+3] = 5;
80
80
81
- for _ in 0 ..100 {
81
+ // set framecounter, vramrow
82
+
83
+ for _ in 0 ..30 {
82
84
if emu. memory . iram_raw [ play_state] == 5 || emu. memory . iram_raw [ p1_play_state] == 5 {
83
85
break ;
84
86
}
87
+
88
+ let address = ( ( emu. registers . s ) as u16 ) + 0x0100 ;
89
+ let address1 = ( ( emu. registers . s ) as u16 ) + 0x0101 ;
90
+
91
+
85
92
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) ;
86
101
emu. run_until_vblank ( ) ;
87
102
}
88
103
You can’t perform that action at this time.
0 commit comments