PRG_SUPERBANK .rs 2 ; PRG superbank PRG_BANK .rs 1 ; PRG_A BANK CHR_BANK .rs 1 ; CHR_A BANK PRG_RAM_BANK .rs 1 ; PRG RAM BANK CART_CONFIG .rs 1 ; variable to store last config PRG_RAM_BANKS .equ 4 ; number of PRG RAM banks BANKS_TMP .rs 1 banking_init: ; set mirrong, disabe CHR writing, PRG-RAM and flash writing lda #0 sta