Add tools/ and manual/, move sources to src/
[dpadhero2.git] / src / mmc / mmc3.h
blobb5a00670c78d55b13c849352bd486c172a3a3797
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
21 .ifndef MMC3_H
22 .define MMC3_H
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
33 MMC3_MIRROR_V .equ 0
34 MMC3_MIRROR_H .equ 1
36 MMC3_SRAM_DISABLE .equ 0
37 MMC3_SRAM_ENABLE .equ 1
39 ; Exported symbols.
40 .extrn reset_bank:label
41 .extrn set_bank:label
42 .extrn swap_bank:label
44 .extrn irq_count:byte
45 .extrn chr_banks:byte
46 .extrn chr_addr_toggle:byte
47 .extrn current_bank:byte
49 .endif ; !MMC3_H