2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
12 void OR::write_signal(int id, uint32 data, uint32 mask)
19 bool next = (bits_in != 0);
20 if(prev != next || first) {
21 write_signals(&outputs, next ? 0xffffffff : 0);
27 #define STATE_VERSION 1
29 void OR::save_state(FILEIO* state_fio)
31 state_fio->FputUint32(STATE_VERSION);
32 state_fio->FputInt32(this_device_id);
34 state_fio->FputUint32(bits_in);
35 state_fio->FputBool(prev);
36 state_fio->FputBool(first);
39 bool OR::load_state(FILEIO* state_fio)
41 if(state_fio->FgetUint32() != STATE_VERSION) {
44 if(state_fio->FgetInt32() != this_device_id) {
47 bits_in = state_fio->FgetUint32();
48 prev = state_fio->FgetBool();
49 first = state_fio->FgetBool();