2 SHARP MZ-5500 Emulator 'EmuZ-5500'
4 Author : Takeda.Toshiya
14 void SYSPORT::initialize()
17 register_frame_event(this);
20 void SYSPORT::write_io8(uint32_t addr, uint32_t data)
22 switch(addr & 0x3f0) {
28 #if defined(_MZ6500) || defined(_MZ6550)
35 d_ctc->notify_intr_reti();
41 uint32_t SYSPORT::read_io8(uint32_t addr)
43 switch(addr & 0x3ff) {
46 #if defined(_MZ6500) || defined(_MZ6550)
47 return 0xfc | (rst ? 0 : 2) | (highden ? 1 : 0);
49 return 0xfd | (rst ? 0 : 2);
53 return d_ctc->get_intr_ack();
56 return d_sio->get_intr_ack();
64 void SYSPORT::event_frame()
71 #define STATE_VERSION 1
73 bool SYSPORT::process_state(FILEIO* state_fio, bool loading)
75 if(!state_fio->StateCheckUint32(STATE_VERSION)) {
78 if(!state_fio->StateCheckInt32(this_device_id)) {
81 state_fio->StateInt32(rst);
82 state_fio->StateInt32(highden);