| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#ifndef DOSBOX_BIOS_H |
| 20 |
#define DOSBOX_BIOS_H |
| 21 |
|
| 22 |
#define BIOS_BASE_ADDRESS_COM1 0x400 |
| 23 |
#define BIOS_BASE_ADDRESS_COM2 0x402 |
| 24 |
#define BIOS_BASE_ADDRESS_COM3 0x404 |
| 25 |
#define BIOS_BASE_ADDRESS_COM4 0x406 |
| 26 |
#define BIOS_ADDRESS_LPT1 0x408 |
| 27 |
#define BIOS_ADDRESS_LPT2 0x40a |
| 28 |
#define BIOS_ADDRESS_LPT3 0x40c |
| 29 |
|
| 30 |
#define BIOS_CONFIGURATION 0x410 |
| 31 |
|
| 32 |
#define BIOS_MEMORY_SIZE 0x413 |
| 33 |
#define BIOS_TRUE_MEMORY_SIZE 0x415 |
| 34 |
|
| 35 |
#define BIOS_KEYBOARD_STATE 0x417 |
| 36 |
#define BIOS_KEYBOARD_FLAGS1 BIOS_KEYBOARD_STATE |
| 37 |
#define BIOS_KEYBOARD_FLAGS2 0x418 |
| 38 |
#define BIOS_KEYBOARD_TOKEN 0x419 |
| 39 |
|
| 40 |
#define BIOS_KEYBOARD_BUFFER_HEAD 0x41a |
| 41 |
#define BIOS_KEYBOARD_BUFFER_TAIL 0x41c |
| 42 |
#define BIOS_KEYBOARD_BUFFER 0x41e |
| 43 |
|
| 44 |
#define BIOS_DRIVE_ACTIVE 0x43e |
| 45 |
#define BIOS_DRIVE_RUNNING 0x43f |
| 46 |
#define BIOS_DISK_MOTOR_TIMEOUT 0x440 |
| 47 |
#define BIOS_DISK_STATUS 0x441 |
| 48 |
|
| 49 |
#define BIOS_VIDEO_MODE 0x449 |
| 50 |
#define BIOS_SCREEN_COLUMNS 0x44a |
| 51 |
#define BIOS_VIDEO_MEMORY_USED 0x44c |
| 52 |
#define BIOS_VIDEO_MEMORY_ADDRESS 0x44e |
| 53 |
#define BIOS_VIDEO_CURSOR_POS 0x450 |
| 54 |
|
| 55 |
|
| 56 |
#define BIOS_CURSOR_SHAPE 0x460 |
| 57 |
#define BIOS_CURSOR_LAST_LINE 0x460 |
| 58 |
#define BIOS_CURSOR_FIRST_LINE 0x461 |
| 59 |
#define BIOS_CURRENT_SCREEN_PAGE 0x462 |
| 60 |
#define BIOS_VIDEO_PORT 0x463 |
| 61 |
#define BIOS_VDU_CONTROL 0x465 |
| 62 |
#define BIOS_VDU_COLOR_REGISTER 0x466 |
| 63 |
|
| 64 |
#define BIOS_TIMER 0x46c |
| 65 |
#define BIOS_24_HOURS_FLAG 0x470 |
| 66 |
#define BIOS_KEYBOARD_FLAGS 0x471 |
| 67 |
#define BIOS_CTRL_ALT_DEL_FLAG 0x472 |
| 68 |
#define BIOS_HARDDISK_COUNT 0x475 |
| 69 |
|
| 70 |
#define BIOS_LPT1_TIMEOUT 0x478 |
| 71 |
#define BIOS_LPT2_TIMEOUT 0x479 |
| 72 |
#define BIOS_LPT3_TIMEOUT 0x47a |
| 73 |
|
| 74 |
#define BIOS_COM1_TIMEOUT 0x47c |
| 75 |
#define BIOS_COM2_TIMEOUT 0x47d |
| 76 |
#define BIOS_COM3_TIMEOUT 0x47e |
| 77 |
#define BIOS_COM4_TIMEOUT 0x47f |
| 78 |
|
| 79 |
|
| 80 |
#define BIOS_KEYBOARD_BUFFER_START 0x480 |
| 81 |
#define BIOS_KEYBOARD_BUFFER_END 0x482 |
| 82 |
|
| 83 |
#define BIOS_ROWS_ON_SCREEN_MINUS_1 0x484 |
| 84 |
#define BIOS_FONT_HEIGHT 0x485 |
| 85 |
|
| 86 |
#define BIOS_VIDEO_INFO_0 0x487 |
| 87 |
#define BIOS_VIDEO_INFO_1 0x488 |
| 88 |
#define BIOS_VIDEO_INFO_2 0x489 |
| 89 |
#define BIOS_VIDEO_COMBO 0x48a |
| 90 |
|
| 91 |
#define BIOS_KEYBOARD_FLAGS3 0x496 |
| 92 |
#define BIOS_KEYBOARD_LEDS 0x497 |
| 93 |
|
| 94 |
#define BIOS_WAIT_FLAG_POINTER 0x498 |
| 95 |
#define BIOS_WAIT_FLAG_COUNT 0x49c |
| 96 |
#define BIOS_WAIT_FLAG_ACTIVE 0x4a0 |
| 97 |
#define BIOS_WAIT_FLAG_TEMP 0x4a1 |
| 98 |
|
| 99 |
|
| 100 |
#define BIOS_PRINT_SCREEN_FLAG 0x500 |
| 101 |
|
| 102 |
#define BIOS_VIDEO_SAVEPTR 0x4a8 |
| 103 |
|
| 104 |
|
| 105 |
#define BIOS_DEFAULT_HANDLER_LOCATION (RealMake(0xf000,0xff53)) |
| 106 |
#define BIOS_DEFAULT_IRQ0_LOCATION (RealMake(0xf000,0xfea5)) |
| 107 |
#define BIOS_DEFAULT_IRQ1_LOCATION (RealMake(0xf000,0xe987)) |
| 108 |
#define BIOS_DEFAULT_IRQ2_LOCATION (RealMake(0xf000,0xff55)) |
| 109 |
|
| 110 |
|
| 111 |
#define MAX_SCAN_CODE 0x58 |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
void BIOS_ZeroExtendedSize(bool in); |
| 119 |
void char_out(Bit8u chr,Bit32u att,Bit8u page); |
| 120 |
void INT10_StartUp(void); |
| 121 |
void INT16_StartUp(void); |
| 122 |
void INT2A_StartUp(void); |
| 123 |
void INT2F_StartUp(void); |
| 124 |
void INT33_StartUp(void); |
| 125 |
void INT13_StartUp(void); |
| 126 |
|
| 127 |
bool BIOS_AddKeyToBuffer(Bit16u code); |
| 128 |
|
| 129 |
void INT10_ReloadRomFonts(); |
| 130 |
|
| 131 |
void BIOS_SetComPorts (Bit16u baseaddr[]); |
| 132 |
|
| 133 |
#endif |