X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcommon%2Fmemory.h;h=5ba5204df12f367a9cbed7d12e7bd5bcac2baba2;hb=5419d1bd9d2faae98c78da740634b972e8f5aac1;hp=2d65d5ede5575b7a6ced9b0fb5f66484efd6bc2d;hpb=b58acccaf024f36848c25eb16de47aea82d1ae63;p=emu8051.git diff --git a/src/common/memory.h b/src/common/memory.h index 2d65d5e..5ba5204 100644 --- a/src/common/memory.h +++ b/src/common/memory.h @@ -4,19 +4,7 @@ * Copyright (C) 1999 Jonathan St-André * Copyright (C) 1999 Hugo Villeneuve * - * 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 @@ -43,9 +31,19 @@ enum mem_id_t { 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); @@ -83,6 +81,6 @@ uint16_t 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 */