WIP
You are here:

QuickBank::Set

Sets which bank is active.

 

Incoming

A

Byte, The bank to use.

Outgoing

Carry

Clear if the new bank status is set. Set if an unsupported bank is used.

All other registers 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