2 TOSHIBA PASOPIA 7 Emulator 'EmuPIA7'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_MEMORY_I8255_1_A 0
18 #define SIG_MEMORY_I8255_1_B 1
19 #define SIG_MEMORY_I8255_1_C 2
21 class MEMORY : public DEVICE
24 DEVICE *d_iobus, *d_pio0, *d_pio2;
29 uint8 vram[0x10000]; // blue, red, green + text, attribute
36 uint8 mem_map, plane, attr_data, attr_latch;
37 bool vram_sel, pal_sel, attr_wrap;
39 void update_memory_map();
42 MEMORY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
48 void write_data8(uint32 addr, uint32 data);
49 uint32 read_data8(uint32 addr);
50 void write_io8(uint32 addr, uint32 data);
51 void write_signal(int id, uint32 data, uint32 mask);
52 void save_state(FILEIO* state_fio);
53 bool load_state(FILEIO* state_fio);
56 void set_context_iobus(DEVICE* device)
60 void set_context_pio0(DEVICE* device)
64 void set_context_pio2(DEVICE* device)