![]() |
Routines |
| Prev: 66BA | Up: Map | Next: 66C7 |
|
Used by the routines at DescribeLocation and WaitForKey.
Selects RAM bank A at C000 and forces the 48K ROM, which is the ROM this game's calls expect. A is the bank in the low three bits. Callers pass 0, 3 or 6. Bank 7, which the loader paged with OUT 32765,23, is never requested again.
|
||||
| PageBank | 66BD | PUSH BC | Stash BC on the stack. | |
| 66BE | LD BC,$7FFD | Point BC at port 7FFD. | ||
| 66C1 | OR %00010000 | Keep bit 4 set (48K ROM). | ||
| 66C3 | OUT (C),A | Write the page to port 7FFD. | ||
| 66C5 | POP BC | Restore BC from the stack. | ||
| 66C6 | RET | Return. | ||
| Prev: 66BA | Up: Map | Next: 66C7 |