1 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. 2 // Copyright (C) 1999-2003 Forgotten 3 // Copyright (C) 2004 Forgotten and the VBA development team 4 5 // This program is free software; you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation; either version 2, or(at your option) 8 // any later version. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software Foundation, 17 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 #include "../GBA.h" 20 21 u8 *gbMemoryMap[16]; 22 23 int gbRomSizeMask = 0; 24 int gbRomSize = 0; 25 int gbRamSizeMask = 0; 26 int gbRamSize = 0; 27 28 u8 *gbMemory = NULL; 29 u8 *gbVram = NULL; 30 u8 *gbRom = NULL; 31 u8 *gbRam = NULL; 32 u8 *gbWram = NULL; 33 u16 *gbLineBuffer = NULL; 34 35 u16 gbPalette[128]; 36 u8 gbBgp[4] = { 0, 1, 2, 3}; 37 u8 gbObp0[4] = { 0, 1, 2, 3}; 38 u8 gbObp1[4] = { 0, 1, 2, 3}; 39 int gbWindowLine = -1; 40 41 int gbCgbMode = 0; 42 43 u16 gbColorFilter[32768]; 44 int gbColorOption = 0; 45 int gbPaletteOption = 0; 46 int gbEmulatorType = 0; 47 int gbBorderOn = 1; 48 int gbBorderAutomatic = 0; 49 int gbBorderLineSkip = 160; 50 int gbBorderRowSkip = 0; 51 int gbBorderColumnSkip = 0; 52 int gbDmaTicks = 0; 53 54 u8 (*gbSerialFunction)(u8) = NULL; 55