2 SHARP MZ-3500 Emulator 'EmuZ-3500'
4 Author : Takeda.Toshiya
14 #include "../../emu.h"
15 #include "../device.h"
17 #define SIG_MAIN_SACK 0
18 #define SIG_MAIN_SRDY 1
19 #define SIG_MAIN_INTFD 2
20 #define SIG_MAIN_INT0 3
21 #define SIG_MAIN_INT1 4
22 #define SIG_MAIN_INT2 5
23 #define SIG_MAIN_INT3 6
24 #define SIG_MAIN_INT4 7
25 #define SIG_MAIN_DRQ 8
26 #define SIG_MAIN_INDEX 9
28 class MAIN : public DEVICE
31 DEVICE *d_cpu, *d_subcpu, *d_fdc;
33 uint8* rbank[32]; // 64KB / 2KB
48 bool intfd, int0, int1, int2, int3, int4;
51 bool motor, drq, index;
57 MAIN(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
59 intfd = int0 = int1 = int2 = int3 = int4 = false;
67 void write_data8(uint32 addr, uint32 data);
68 uint32 read_data8(uint32 addr);
69 void write_io8(uint32 addr, uint32 data);
70 uint32 read_io8(uint32 addr);
71 void write_signal(int id, uint32 data, uint32 mask);
74 void set_context_cpu(DEVICE* device)
78 void set_context_subcpu(DEVICE* device)
82 void set_context_fdc(DEVICE* device)