You are here:
- Home
- Documentation
- Quick OS
- Components
- QuickBank
- QuickBank::Clear
QuickBank::Clear
Clears the active bank, returning the memory to standard RAM.
Incoming
N/A
Outgoing
A and P (Flags) are lost.
Example
; Gets the first word from Bank 0, then disables the bank.
; Incoming: N/A
; Outgoing:
; X & Y Word (X High), The word.
; Carry is set if the bank is not supported.
GetBank0ID:
; Set the bank
LDA #0
JSR QuickBank::Set
BCC :+
RTS
:
; Get the word
LoadXY $4000
; Clear the bank
JSR QuickBank::Clear
CLC
RTS
; End GetBank0ID