2 CASIO FP-1100 Emulator 'eFP-1100'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_MAIN_INTS 0
18 #define SIG_MAIN_INTA 1
19 #define SIG_MAIN_INTB 2
20 #define SIG_MAIN_INTC 3
21 #define SIG_MAIN_INTD 4
22 #define SIG_MAIN_COMM 5
24 class MAIN : public DEVICE
47 void update_memory_map();
51 MAIN(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
53 intr_mask = intr_req = 0;
60 void write_data8(uint32 addr, uint32 data);
61 uint32 read_data8(uint32 addr);
62 void write_io8(uint32 addr, uint32 data);
63 uint32 read_io8(uint32 addr);
64 void write_signal(int id, uint32 data, uint32 mask);
67 void save_state(FILEIO* state_fio);
68 bool load_state(FILEIO* state_fio);
71 void set_context_cpu(DEVICE *device)
75 void set_context_sub(DEVICE *device)
79 void set_context_slot(int slot, DEVICE *device)
81 d_slot[slot] = device;