2 Skelton for retropc emulator
4 Author : Takeda.Toshiya
17 #define SIG_LS393_CLK 0
19 class LS393 : public DEVICE
29 LS393(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
31 for(int i = 0; i < 8; i++) {
32 initialize_output_signals(&outputs[i]);
36 set_device_name(_T("74LS393 4-STAGE COUNTER"));
41 void write_signal(int id, uint32_t data, uint32_t mask);
42 void save_state(FILEIO* state_fio);
43 bool load_state(FILEIO* state_fio);
46 void set_context_1qa(DEVICE* device, int id, uint32_t mask)
48 register_output_signal(&outputs[0], device, id, mask);
50 void set_context_1qb(DEVICE* device, int id, uint32_t mask)
52 register_output_signal(&outputs[1], device, id, mask);
54 void set_context_1qc(DEVICE* device, int id, uint32_t mask)
56 register_output_signal(&outputs[2], device, id, mask);
58 void set_context_1qd(DEVICE* device, int id, uint32_t mask)
60 register_output_signal(&outputs[3], device, id, mask);
62 void set_context_2qa(DEVICE* device, int id, uint32_t mask)
64 register_output_signal(&outputs[4], device, id, mask);
66 void set_context_2qb(DEVICE* device, int id, uint32_t mask)
68 register_output_signal(&outputs[5], device, id, mask);
70 void set_context_2qc(DEVICE* device, int id, uint32_t mask)
72 register_output_signal(&outputs[6], device, id, mask);
74 void set_context_2qd(DEVICE* device, int id, uint32_t mask)
76 register_output_signal(&outputs[7], device, id, mask);