OSDN Git Service

da781aaf0430746d61a05147ee399e7218717e00
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / reset.h
1 /*
2         SHARP MZ-2800 Emulator 'EmuZ-2800'
3
4         Author : Takeda.Toshiya
5         Date   : 2007.08.14 -
6
7         [ reset ]
8 */
9
10 #ifndef _RESET_H_
11 #define _RESET_H_
12
13 #include "../vm.h"
14 #include "../../emu.h"
15 #include "../device.h"
16
17 #define SIG_RESET_CONTROL       0
18
19 class RESET : public DEVICE
20 {
21 private:
22         uint8_t prev;
23         
24 public:
25         RESET(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
26         {
27                 set_device_name(_T("Reset I/O"));
28         }
29         ~RESET() {}
30         
31         // common functions
32         void initialize();
33         void write_signal(int id, uint32_t data, uint32_t mask);
34         bool process_state(FILEIO* state_fio, bool loading);
35 };
36
37 #endif
38