Rename macros for maximum memory sizes
[emu8051.git] / src / memory.h
index 76c0b86..d5e426d 100644 (file)
 
 #include <sys/types.h>
 
+#define PGM_MEM_MAX_SIZE 65536
+/*
+ *   Direct addressing $00 to $7F = IRAM (8051)
+ *   Direct addressing $80 to $FF = SFR  (8051)
+ * Indirect addressing $80 to $FF = IRAM (8052)
+ */
+#define INT_MEM_MAX_SIZE   256
+#define EXT_MEM_MAX_SIZE 65536
+
+#define EXT_MEM_DEFAULT_SIZE 1024
+
 enum {
   PGM_MEM_ID,
   INT_MEM_ID,
@@ -31,9 +42,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 */