þþ èX;SAVE #D9:FMSBANK.M65òX;üX; ‡RAMDISKX;-X;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;$X;.$X; RAMSYNC -- ensure RAMIO occurs8*X; only with interrupts disabled andBX; during VBLANK intervalLX;V ‡RAMSYNC`%>j+'†CRITIC;; tell VBLANK this is critical!t.$‡FASTRAM;; special: ignore sync w/ vblank?~G‡:FASTER;; yesˆX;’ $ˆCLOCKLSBœ …:SYNC¦!(ˆCLOCKLSB;; got a VBLANK yet?°F…:SYNC;; noºX;Ä ‡:FASTERÎ '…NMIEN;; disable VBI and DLIØ=;; and disable IRQ'sâX;ìX; fall thru to SETBANK...weö#X; didn't disturb A-register!X; =X; SETBANK -- subroutine to set PIA to proper RAMDISK bankX;$X; enter: A-reg has 0,1,2,3 or 4(X;2 ‡SETBANK<T?F&T?;; get bank number to proper bitsP'P†ZTEMP2;; and hold them for a nonceZ'QˆPIABPORT;; the memory control bitsd#M>ã;; zero out bits PB2,PB3,PB4n'L†ZTEMP2;; then include our new bitsx&PˆPIABPORT;; and reconfigure memory‚:ŒX;–