| 260 | } |
| 261 | |
| 262 | void setchr8r(int r, uint32 V) { |
| 263 | int x; |
| 264 | |
| 265 | if (!CHRptr[r]) return; |
| 266 | FCEUPPU_LineUpdate(); |
| 267 | V &= CHRmask8[r]; |
| 268 | for (x = 7; x >= 0; x--) |
| 269 | VPageR[x] = &CHRptr[r][V << 13]; |
| 270 | if (CHRram[r]) |
| 271 | PPUCHRRAM |= (255); |
| 272 | else |
| 273 | PPUCHRRAM = 0; |
| 274 | } |
| 275 | |
| 276 | void setchr1(uint32 A, uint32 V) { |
| 277 | setchr1r(0, A, V); |