(index int)
| 175 | } |
| 176 | |
| 177 | func (m *Mapper4) prgBankOffset(index int) int { |
| 178 | if index >= 0x80 { |
| 179 | index -= 0x100 |
| 180 | } |
| 181 | index %= len(m.PRG) / 0x2000 |
| 182 | offset := index * 0x2000 |
| 183 | if offset < 0 { |
| 184 | offset += len(m.PRG) |
| 185 | } |
| 186 | return offset |
| 187 | } |
| 188 | |
| 189 | func (m *Mapper4) chrBankOffset(index int) int { |
| 190 | if index >= 0x80 { |
no outgoing calls
no test coverage detected