#ifndef __MEM_SEG_H__ #define __MEM_SEG_H__ #include #ifndef DEVICE_TYPE #define DEVICE_TYPE EXTENDED_DEVICE_TYPE_INSTR_SIMUL #endif #define MEMSEG_PS 0 #define MEMDATA_PS MEMSEG_PS #define MEMDATA_GP_REGS 1 #define MEMDATA_IO_REGS 2 #define MEMDATA_DS 3 #define MEMDATA_OPSIZE 5 #define MEMSEG_PC_SEG_NUM 1 #define MEMSEG_PC_ADDR 0 #define MEMSEG_DEFINES {\ {MEMSEG_PS, "PS", 2, 1024, 2, 1}, \ {MEMSEG_PC_SEG_NUM, "PC", 2, 1, 0, 0}, \ {MEMDATA_IO_REGS, "IO_REG", 1, 255, (1024 * 2) + 2, 0}, \ {MEMDATA_GP_REGS, "GP_REG", 1, 32, (1024 * 2) + 2 + 255, 0}, \ {MEMDATA_DS, "DS", 1, 65535, 2, 0} \ } #endif //ifndef __MEM_SEG_H__