2 ; Copyright (C
) 2004, 2005 Kent Hansen
.
4 ; This file is part of Neotoxin
.
6 ; Neotoxin is free software
; you can redistribute it
and/or modify
7 ; it under the terms of the GNU General Public License as published by
8 ; the Free Software Foundation
; either version
2 of the License
, or
9 ; (at your option
) any later version
.
11 ; Neotoxin is distributed in the hope that it will be useful
,
12 ; but WITHOUT ANY WARRANTY
; without even the implied warranty of
13 ; MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE
. See the
14 ; GNU General Public License
for more details
.
16 ; You should have received a copy of the GNU General Public License
17 ; along with
this program
; if not, write to the Free Software
18 ; Foundation
, Inc
., 59 Temple Place
, Suite
330, Boston
, MA
02111-1307 USA
24 MMC3_CTRL_REG
.equ $
8000
25 MMC3_PAGE_REG
.equ $
8001
26 MMC3_MIRROR_REG
.equ $A000
27 MMC3_SRAM_REG
.equ $A001
28 MMC3_IRQ_COUNTER_REG
.equ $C000
29 MMC3_IRQ_LATCH_REG
.equ $C001
30 MMC3_IRQ_DISABLE_REG
.equ $E000
31 MMC3_IRQ_ENABLE_REG
.equ $E001
36 MMC3_SRAM_DISABLE
.equ
0
37 MMC3_SRAM_ENABLE
.equ
1
40 .extrn reset_bank
:label
42 .extrn swap_bank
:label
46 .extrn chr_addr_toggle
:byte
47 .extrn current_bank
:byte