OSDN Git Service

37b8538a352f7e7a70c5de01ff841f177a0185db
[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 class BIOS : public DEVICE
21 {
22 private:
23         UPD765A *d_fdc;
24         
25 public:
26         BIOS(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
27         {
28                 set_device_name(_T("Pseudo BIOS"));
29         }
30         ~BIOS() {}
31         
32         // common function
33         bool bios_int_i86(int intnum, uint16_t regs[], uint16_t sregs[], int32_t* ZeroFlag, int32_t* CarryFlag);
34         
35         // unique function
36         void set_context_fdc(UPD765A* device)
37         {
38                 d_fdc = device;
39         }
40 };
41
42 #endif
43