Prev: 66BA Up: Map Next: 66C7
66BD: Page RAM Bank
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 Save what the caller passed in, since BC is needed for the memory paging port 7FFD.
66BE LD BC,$7FFD
66C1 OR $10 Force the 48K ROM and write the bank in the low three bits.
66C3 OUT (C),A
66C5 POP BC Restore BC from the stack.
66C6 RET Return.
Prev: 66BA Up: Map Next: 66C7