|
|
| version 1.7, 2004/02/13 14:52:21 | version 1.17, 2004/06/18 07:42:13 |
|---|---|
| Line 1 | Line 1 |
| #define BIOS_SEG 0xfd80 | |
| #define BIOS_BASE (BIOS_SEG << 4) | |
| // #define BIOS_OFF 0x0100 | enum { |
| // #define BIOS_ADR ((BIOS_SEG << 4) + BIOS_OFF) | BIOS_SEG = 0xfd80, |
| BIOS_BASE = (BIOS_SEG << 4), | |
| BIOS_TABLE = 0x0040, | |
| BIOSOFST_ITF = 0x0080, | |
| BIOSOFST_INIT = 0x0084, | |
| BIOSOFST_09 = 0x0088, // Keyboard | |
| BIOSOFST_0c = 0x008c, // Serial | |
| BIOSOFST_12 = 0x0090, // FDC | |
| BIOSOFST_13 = 0x0094, // FDC | |
| BIOSOFST_18 = 0x0098, // Common | |
| BIOSOFST_19 = 0x009c, // RS-232C | |
| BIOSOFST_CMT = 0x00a0, // CMT | |
| BIOSOFST_PRT = 0x00a4, // Printer | |
| BIOSOFST_1b = 0x00a8, // Disk | |
| BIOSOFST_1c = 0x00ac, // Timer | |
| BIOSOFST_1f = 0x00b0, // Ext | |
| BIOSOFST_WAIT = 0x00b4 // FDD waiting | |
| enum { // オフセット〜 | |
| BIOSOFST_IRET = 0x0100, // IRET | |
| BIOSOFST_EOIM = 0x0102, // EOI Master | |
| BIOSOFST_EOIS = 0x0104, // EOI Slave | |
| BIOSOFST_02 = 0x0106, // NMI | |
| BIOSOFST_08 = 0x0108, // PIT | |
| BIOSOFST_09 = 0x010a, // Keyboard | |
| BIOSOFST_0c = 0x010c, // Serial | |
| BIOSOFST_12 = 0x010e, // FDC | |
| BIOSOFST_13 = 0x0110, // FDC | |
| BIOSOFST_18 = 0x0112, // Common | |
| BIOSOFST_19 = 0x0114, // RS-232C | |
| BIOSOFST_1a = 0x0116, // Printer | |
| BIOSOFST_1b = 0x0118, // Disk | |
| BIOSOFST_1c = 0x011a, // Timer | |
| BIOSOFST_1e = 0x0000, // BASIC | |
| BIOSOFST_1f = 0x011c, // Ext | |
| BIOSOFST_PRT = (BIOSOFST_1a + 0x19), // Printer Main | |
| BIOSOFST_WAIT = 0x0140 // FDD waiting | |
| }; | }; |
| Line 35 enum { // オフセット〜 | Line 30 enum { // オフセット〜 |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern BOOL biosrom; | // extern BOOL biosrom; |
| void bios_init(void); | void bios_initialize(void); |
| UINT MEMCALL biosfunc(UINT32 adrs); | UINT MEMCALL biosfunc(UINT32 adrs); |
| void bios0x02(void); | |
| void bios0x08(void); | |
| void bios0x09(void); | void bios0x09(void); |
| void bios0x09_init(void); | void bios0x09_init(void); |
| Line 54 void bios0x12(void); | Line 45 void bios0x12(void); |
| void bios0x13(void); | void bios0x13(void); |
| void bios0x18(void); | void bios0x18(void); |
| void bios0x18_16(BYTE chr, BYTE atr); | void bios0x18_0a(REG8 mode); |
| void bios0x18_0c(void); | |
| void bios0x18_10(REG8 curdel); | |
| REG16 bios0x18_14(REG16 seg, REG16 off, REG16 code); | |
| void bios0x18_16(REG8 chr, REG8 atr); | |
| void bios0x18_40(void); | |
| void bios0x18_41(void); | |
| void bios0x18_42(REG8 mode); | |
| void bios0x19(void); | void bios0x19(void); |
| void bios0x1a(void); | void bios0x1a_cmt(void); |
| void bios0x1a_main(void); | void bios0x1a_prt(void); |
| void bios0x1b(void); | void bios0x1b(void); |
| UINT bios0x1b_wait(void); | |
| void fddbios_equip(REG8 type, BOOL clear); | void fddbios_equip(REG8 type, BOOL clear); |
| REG16 bootstrapload(void); | REG16 bootstrapload(void); |
| void bios0x1c(void); | void bios0x1c(void); |
| void bios0x1c_03(void); | |
| void bios0x1f(void); | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |