| 79 | CartInfo *currCartInfo; |
| 80 | |
| 81 | static INLINE void setpageptr(int s, uint32 A, uint8 *p, int ram) { |
| 82 | uint32 AB = A >> 11; |
| 83 | int x; |
| 84 | |
| 85 | if (p) |
| 86 | for (x = (s >> 1) - 1; x >= 0; x--) { |
| 87 | PRGIsRAM[AB + x] = ram; |
| 88 | Page[AB + x] = p - A; |
| 89 | } |
| 90 | else |
| 91 | for (x = (s >> 1) - 1; x >= 0; x--) { |
| 92 | PRGIsRAM[AB + x] = 0; |
| 93 | Page[AB + x] = 0; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | static uint8 nothing[8192]; |
| 98 | void ResetCartMapping(void) { |