Prev: 26298 Up: Map Next: 26311
26301: Page RAM Bank
Used by the routines at DescribeLocation and WaitForKey.
Selects RAM bank A at 49152 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 26301 PUSH BC Stash BC on the stack.
26302 LD BC,32765 Point BC at port 32765.
26305 OR %00010000 Keep bit 4 set (48K ROM).
26307 OUT (C),A Write the page to port 32765.
26309 POP BC Restore BC from the stack.
26310 RET Return.
Prev: 26298 Up: Map Next: 26311