OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc98ha / bios.h
1 /*
2         NEC PC-98LT Emulator 'ePC-98LT'
3         NEC PC-98HA Emulator 'eHANDY98'
4
5         Author : Takeda.Toshiya
6         Date   : 2010.05.12 -
7
8         [ bios ]
9 */
10
11 #ifndef _BIOS_H_
12 #define _BIOS_H_
13
14 #include "../vm.h"
15 #include "../../emu.h"
16 #include "../device.h"
17
18 class UPD765A;
19
20 namespace PC98HA {
21
22 class BIOS : public DEVICE
23 {
24 private:
25         UPD765A *d_fdc;
26         
27 public:
28         BIOS(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
29         {
30                 set_device_name(_T("Pseudo BIOS"));
31         }
32         ~BIOS() {}
33         
34         // common function
35         bool bios_int_i86(int intnum, uint16_t regs[], uint16_t sregs[], int32_t* ZeroFlag, int32_t* CarryFlag);
36         
37         // unique function
38         void set_context_fdc(UPD765A* device)
39         {
40                 d_fdc = device;
41         }
42 };
43
44 }
45 #endif
46