.SetNonZeroBank CMP currentBank ; If the ROM bank number in A is non-zero, jump to BNE SetBank ; SetBank to page bank A into memory, returning from the ; subroutine using a tail call RTS ; Otherwise return from the subroutineName: SetNonZeroBank [Show more] Type: Subroutine Category: Utility routines Summary: An unused routine that pages a specified ROM bank into memory at $8000, but only if it is non-zero Deep dive: Splitting NES Elite across multiple ROM banksContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
Arguments: A The number of the ROM bank to page into memory at $8000
[X]
Subroutine SetBank (category: Utility routines)
Page a specified ROM bank into memory at $8000
[X]
Variable currentBank in workspace ZP
Contains the number of the ROM bank (0 to 6) that is currently paged into memory at $8000