2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
17 #define SIG_NOR_BIT_0 0x01
18 #define SIG_NOR_BIT_1 0x02
19 #define SIG_NOR_BIT_2 0x04
20 #define SIG_NOR_BIT_3 0x08
21 #define SIG_NOR_BIT_4 0x10
22 #define SIG_NOR_BIT_5 0x20
23 #define SIG_NOR_BIT_6 0x40
24 #define SIG_NOR_BIT_7 0x80
28 class NOR : public DEVICE
36 NOR(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
38 initialize_output_signals(&outputs);
41 set_device_name(_T("NOR GATE"));
46 void write_signal(int id, uint32_t data, uint32_t mask);
47 void save_state(FILEIO* state_fio);
48 bool load_state(FILEIO* state_fio);
51 void set_context_out(DEVICE* device, int id, uint32_t mask)
53 register_output_signal(&outputs, device, id, mask);