* Copyright (C) 1999 Jonathan St-André
* Copyright (C) 1999 Hugo Villeneuve <hugo@hugovil.com>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This file is released under the GPLv2
*/
#ifndef MEMORY_H
#define EXT_MEM_MAX_SIZE 65536
#define PGM_MEM_DEFAULT_SIZE PGM_MEM_MAX_SIZE
-#define EXT_MEM_DEFAULT_SIZE 1024
+#define EXT_MEM_DEFAULT_SIZE 256
enum mem_id_t {
PGM_MEM_ID,
MEM_ID_COUNT
};
+#define DISPLAY_ERROR_NO 0
+#define DISPLAY_ERROR_YES 1
+
void
memory_init(void);
+int
+memory_check_address(enum mem_id_t id, unsigned long address,
+ int display_error);
+
+u_int8_t *
+memory_getbuf(enum mem_id_t id, unsigned long address);
+
void
memory_clear(enum mem_id_t id);
pgm_read_addr16(uint16_t base);
void
-DumpMem(char *Address, char *Asize, int memory_id);
+memory_dump(unsigned int address, int size, int memory_id);
#endif /* MEMORY_H */