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
49 uint8 intr_in_service;
51 void update_memory_map();
55 MAIN(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
57 intr_mask = intr_request = intr_in_service = 0;
64 void write_data8(uint32 addr, uint32 data);
65 uint32 read_data8(uint32 addr);
66 #ifdef Z80_MEMORY_WAIT
67 void write_data8w(uint32 addr, uint32 data, int *wait);
68 uint32 read_data8w(uint32 addr, int *wait);
70 void write_io8(uint32 addr, uint32 data);
71 uint32 read_io8(uint32 addr);
73 void write_io8w(uint32 addr, uint32 data, int *wait);
74 uint32 read_io8w(uint32 addr, int *wait);
76 void write_signal(int id, uint32 data, uint32 mask);
77 uint32 get_intr_ack();
78 void notify_intr_reti();
79 void notify_intr_ei();
80 void save_state(FILEIO* state_fio);
81 bool load_state(FILEIO* state_fio);
84 void set_context_cpu(DEVICE *device)
88 void set_context_sub(DEVICE *device)
92 void set_context_slot(int slot, DEVICE *device)
95 d_slot[slot >> 2][slot & 3] = device;