home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / gbe / mem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-12  |  1.4 KB  |  41 lines

  1. /*
  2.  *  gbe - gameboy emulator
  3.  *  Copyright (C) 1999  Chuck Mason, Steven Fuller
  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 of the License, or
  8.  *  (at your option) 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
  17.  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  18.  *
  19.  *
  20.  *  Chuck Mason <chuckjr@sinclair.net>
  21.  *  Steven Fuller <relnev@atdot.org>
  22.  */
  23. #ifndef __MEM_H
  24. #define __MEM_H
  25.  
  26. extern unsigned char *gameboy_memory[16];
  27. extern unsigned char *video_ram;
  28. extern unsigned char *sprite_oam;
  29. extern unsigned short int bkg_palettes[8][4];
  30. extern unsigned short int obj_palettes[8][4];
  31.  
  32. void install_memory(char, void *);
  33. int  initialize_memory();
  34. void free_memory();
  35. unsigned char memory_read_byte(unsigned short int);
  36. unsigned short int memory_read_word(unsigned short int);
  37.  
  38. void memory_write_byte(unsigned short int, unsigned char);
  39. void memory_write_word(unsigned short int, unsigned short int);
  40. #endif
  41.