source: xtideuniversalbios/trunk/Assembly_Library/Inc/BiosFunctions.inc @ 592

Last change on this file since 592 was 592, checked in by krille_n_, 3 years ago

Changes:

  • The problem with NASM in the previous revision (r591) has been fixed.
  • The colors used by the boot menu and hotkey bar can now be customized by selecting one of a number of pre-defined color themes. Suggestions for additional themes are more than welcome!
  • Large builds are now 10 KB. Small builds are still 8 KB with the exception of the Tiny build which is now 4 KB. In other words, builds are now as small as possible to make it easier to combine them with other BIOSes.
  • Added code to the library to improve drive error handling. XTIDECFG can now handle "Drive Not Ready" errors.
  • Fixed a couple of potential bugs in AtaID.asm (AtaID_GetMaxPioModeToAXandMinCycleTimeToCX); 1) ATA1.bPioMode was treated as a WORD variable. 2) ATA2.bPIOSupp was assumed to be non-zero which would result in PIO mode 3 being returned if the assumption was wrong.
  • Made the same changes in the equivalent function used by BIOSDRVS (DisplayPioModeInformationUsingAtaInfoFromDSBX in AtaInfo.asm).
  • Fixed a bug from r587 in PDC20x30.asm in PDC20x30_GetMaxPioModeToALandMinPioCycleTimeToBX.
  • Fixed a bug from r523 in XTIDECFG where Auto Configure would only set the IRQ on one IDE interface on AT-builds.
  • XTIDECFG will now restore the default settings for the "Serial port virtual device" when reselecting it in the list of device types. This makes it behave consistently for all device types.
  • The eAAM macro is now used regardless if USE_UNDOC_INTEL is defined or not because it is apparently supported on all processors including the NEC V20/V30 CPUs.
  • Renamed the EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS define to EXCLUDE_FROM_XUB.
  • Added a define to exclude unused library code from BIOSDRVS (EXCLUDE_FROM_BIOSDRVS). This makes it a lot smaller than in previous revisions.
  • All unnecessary CLD-instructions are now under a new define 'CLD_NEEDED' which is only enabled for the BIOS. It is disabled for XTIDECFG and BIOSDRVS but can be enabled if needed by adding this define to the respective makefile. This change was made because these unnecessary instructions are wasteful and should never be needed. In fact, they only serve to hide bugs (in other peoples code) which I strongly believe should be avoided. I recommend people making their own BIOSes from source to not use this define as it's extremely unlikely to be needed.
  • Updated the copyright info in SerDrive and changed an URL to point to the new site.
  • Updated the copyright info and version number in BIOSDRVS.
  • Updated the copyright info in XTIDECFG.
  • Optimizations in general.
File size: 2.0 KB
Line 
1; Project name  :   AssemblyLibrary
2; Description   :   Defines for BIOS functions.
3%ifndef BIOS_FUNCTIONS_INC
4%define BIOS_FUNCTIONS_INC
5
6; BIOS interrupts
7BIOS_VIDEO_INTERRUPT_10h        EQU     10h
8BIOS_EQUIPMENT_INTERRUPT_11h    EQU     11h
9BIOS_DISK_INTERRUPT_13h         EQU     13h
10BIOS_SYSTEM_INTERRUPT_15h       EQU     15h
11BIOS_KEYBOARD_INTERRUPT_16h     EQU     16h
12BIOS_BOOT_FAILURE_INTERRUPT_18h EQU     18h
13BIOS_BOOT_LOADER_INTERRUPT_19h  EQU     19h
14BIOS_DISKETTE_INTERRUPT_40h     EQU     40h
15HD0_DPT_POINTER_41h             EQU     41h
16HD1_DPT_POINTER_46h             EQU     46h
17
18; Hardware interrupts
19HARDWARE_IRQ_0_INTERRUPT_08h    EQU     08h     ; System timer
20HARDWARE_IRQ_1_INTERRUPT_09h    EQU     09h     ; Keyboard
21HARDWARE_IRQ_2_INTERRUPT_0Ah    EQU     0Ah
22HARDWARE_IRQ_3_INTERRUPT_0Bh    EQU     0Bh
23HARDWARE_IRQ_4_INTERRUPT_0Ch    EQU     0Ch
24HARDWARE_IRQ_5_INTERRUPT_0Dh    EQU     0Dh
25HARDWARE_IRQ_6_INTERRUPT_0Eh    EQU     0Eh
26HARDWARE_IRQ_7_INTERRUPT_0Fh    EQU     0Fh
27HARDWARE_IRQ_8_INTERRUPT_70h    EQU     70h
28HARDWARE_IRQ_9_INTERRUPT_71h    EQU     71h
29HARDWARE_IRQ_10_INTERRUPT_72h   EQU     72h
30HARDWARE_IRQ_11_INTERRUPT_73h   EQU     73h
31HARDWARE_IRQ_12_INTERRUPT_74h   EQU     74h
32HARDWARE_IRQ_13_INTERRUPT_75h   EQU     75h
33HARDWARE_IRQ_14_INTERRUPT_76h   EQU     76h
34HARDWARE_IRQ_15_INTERRUPT_77h   EQU     77h
35
36
37; BIOS video functions
38SET_VIDEO_MODE                  EQU     00h
39SET_TEXT_MODE_CURSOR_SHAPE      EQU     01h
40SET_CURSOR_POSITION             EQU     02h
41GET_CURSOR_POSITION_AND_SIZE    EQU     03h
42SELECT_ACTIVE_DISPLAY_PAGE      EQU     05h
43TELETYPE_OUTPUT                 EQU     0Eh
44
45; BIOS disk functions
46READ_SECTORS_INTO_MEMORY        EQU     02h
47GET_DRIVE_PARAMETERS            EQU     08h
48RESET_HARD_DISK                 EQU     0Dh
49GET_DISK_TYPE                   EQU     15h
50LOTECH_XTCF_FEATURES            EQU     1Eh
51GET_DRIVE_INFORMATION           EQU     25h
52CHECK_EXTENSIONS_PRESENT        EQU     41h
53GET_EXTENDED_DRIVE_INFORMATION  EQU     48h
54
55; BIOS system functions
56OS_HOOK_DEVICE_BUSY             EQU     90h
57OS_HOOK_DEVICE_POST             EQU     91h
58
59; BIOS keyboard functions
60GET_KEYSTROKE                   EQU     00h
61CHECK_FOR_KEYSTROKE             EQU     01h
62
63; BIOS system functions
64EVENT_WAIT                      EQU     86h
65
66
67%endif ; BIOS_FUNCTIONS_INC
Note: See TracBrowser for help on using the repository browser.