unsigned char ram[0x10000]; unsigned char rom_charset[0x800]; unsigned char bootcode[0x100]; typedef struct { unsigned short input; unsigned short output; unsigned short mask; unsigned char irq; } ioxstruct; ioxstruct ioextender[256]; int peripherals[256]; extern int memory_max; void mem_store(int ptr,unsigned char value); unsigned char mem_load(int ptr);