X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fmemory.h;h=4166da9d6b8d292702aaae866063bdefc4f19a99;hb=c862545432cff44e3d64614662c224732534bfd6;hp=76c0b861d96b645ad2802c6c79bd8bdcd306b8f2;hpb=a78a174393ff9c8dbc0d5212576507f25d7e9bf1;p=emu8051.git diff --git a/src/memory.h b/src/memory.h index 76c0b86..4166da9 100644 --- a/src/memory.h +++ b/src/memory.h @@ -24,6 +24,11 @@ #include +#define PGM_MEM_SIZE 65536 +#define INT_MEM_SIZE 256 /* IRAM = Direct addresses $00 to $7F + * SFR = Direct addresses $80 to $FF */ +#define EXT_MEM_SIZE 65536 + enum { PGM_MEM_ID, INT_MEM_ID, @@ -31,9 +36,12 @@ enum { }; void -memory_write8( int memory_id, unsigned long address, u_int8_t value ); +memory_write8(int memory_id, unsigned long address, u_int8_t value); u_int8_t -memory_read8( int memory_id, unsigned long address ); +memory_read8(int memory_id, unsigned long address); + +void +DumpMem(char *Address, char *Asize, int memory_id); #endif /* MEMORY_H */