@@ -92,39 +92,39 @@ void n64_pi_run(void)
92
92
if (last_addr >= CART_DOM1_ADDR2_START && last_addr <= CART_DOM1_ADDR2_END ) {
93
93
// Domain 1, Address 2 Cartridge ROM
94
94
95
- // #if CONFIG_ROM_HEADER_OVERRIDE != 0
96
- // if (last_addr == 0x10000000) {
97
- // // Special case to patch PI access speed paramenters
98
-
99
- // // 16 MSB
100
- // next_word = CONFIG_ROM_HEADER_OVERRIDE >> 16;
101
- // addr = n64_pi_get_value(pio);
102
- // if (addr == 0) {
103
- // // READ
104
- // pio_sm_put(pio, 0, next_word);
105
- // } else if ((addr & 0xffff0000) == 0xffff0000) {
106
- // // WRITE, ignore
107
- // } else {
108
- // // New address
109
- // continue;
110
- // }
111
- // last_addr += 2;
112
-
113
- // // 16 LSB
114
- // next_word = CONFIG_ROM_HEADER_OVERRIDE & 0xFFFF;
115
- // addr = n64_pi_get_value(pio);
116
- // if (addr == 0) {
117
- // // READ
118
- // pio_sm_put(pio, 0, next_word);
119
- // } else if ((addr & 0xffff0000) == 0xffff0000) {
120
- // // WRITE, ignore
121
- // } else {
122
- // // New address
123
- // continue;
124
- // }
125
- // last_addr += 2;
126
- // }
127
- // #endif
95
+ #if CONFIG_ROM_HEADER_OVERRIDE != 0
96
+ if (last_addr == 0x10000000 ) {
97
+ // Special case to patch PI access speed paramenters
98
+
99
+ // 16 MSB
100
+ next_word = CONFIG_ROM_HEADER_OVERRIDE >> 16 ;
101
+ addr = n64_pi_get_value (pio );
102
+ if (addr == 0 ) {
103
+ // READ
104
+ pio_sm_put (pio , 0 , next_word );
105
+ } else if ((addr & 0xffff0000 ) == 0xffff0000 ) {
106
+ // WRITE, ignore
107
+ } else {
108
+ // New address
109
+ continue ;
110
+ }
111
+ last_addr += 2 ;
112
+
113
+ // 16 LSB
114
+ next_word = CONFIG_ROM_HEADER_OVERRIDE & 0xFFFF ;
115
+ addr = n64_pi_get_value (pio );
116
+ if (addr == 0 ) {
117
+ // READ
118
+ pio_sm_put (pio , 0 , next_word );
119
+ } else if ((addr & 0xffff0000 ) == 0xffff0000 ) {
120
+ // WRITE, ignore
121
+ } else {
122
+ // New address
123
+ continue ;
124
+ }
125
+ last_addr += 2 ;
126
+ }
127
+ #endif
128
128
129
129
do {
130
130
// Pre-fetch from the address
0 commit comments