2 SHARP MZ-2800 Emulator 'EmuZ-2800'
4 Author : Takeda.Toshiya
12 void RESET::initialize()
17 void RESET::write_signal(int id, uint32_t data, uint32_t mask)
20 if(!(prev & 2) && (data & 2)) {
21 static_cast<VM *>(vm)->cpu_reset();
23 if(!(prev & 8) && (data & 8)) {
29 #define STATE_VERSION 1
31 #include "../../statesub.h"
33 void RESET::decl_state()
35 enter_decl_state(STATE_VERSION);
37 DECL_STATE_ENTRY_UINT8(prev);
42 void RESET::save_state(FILEIO* state_fio)
44 if(state_entry != NULL) {
45 state_entry->save_state(state_fio);
47 // state_fio->FputUint32(STATE_VERSION);
48 // state_fio->FputInt32(this_device_id);
50 // state_fio->FputUint8(prev);
53 bool RESET::load_state(FILEIO* state_fio)
56 if(state_entry != NULL) {
57 mb = state_entry->load_state(state_fio);
62 // if(state_fio->FgetUint32() != STATE_VERSION) {
65 // if(state_fio->FgetInt32() != this_device_id) {
68 // prev = state_fio->FgetUint8();