2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
12 void NOT::write_signal(int id, uint32_t data, uint32_t mask)
14 bool next = ((data & mask) == 0);
15 if(prev != next || first) {
16 write_signals(&outputs, next ? 0xffffffff : 0);
22 #define STATE_VERSION 1
24 void NOT::save_state(FILEIO* state_fio)
26 state_fio->FputUint32(STATE_VERSION);
27 state_fio->FputInt32(this_device_id);
29 state_fio->FputBool(prev);
30 state_fio->FputBool(first);
33 bool NOT::load_state(FILEIO* state_fio)
35 if(state_fio->FgetUint32() != STATE_VERSION) {
38 if(state_fio->FgetInt32() != this_device_id) {
41 prev = state_fio->FgetBool();
42 first = state_fio->FgetBool();