source: xtideuniversalbios/trunk/Assembly_Library/Src/AssemblyLibrary.asm @ 592

Last change on this file since 592 was 592, checked in by krille_n_, 6 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: 3.5 KB
Line 
1; Project name  :   Assembly Library
2; Description   :   Assembly Library main file. This is the only file that
3;                   needs to be included.
4
5;
6; XTIDE Universal BIOS and Associated Tools
7; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
8;
9; This program is free software; you can redistribute it and/or modify
10; it under the terms of the GNU General Public License as published by
11; the Free Software Foundation; either version 2 of the License, or
12; (at your option) any later version.
13;
14; This program is distributed in the hope that it will be useful,
15; but WITHOUT ANY WARRANTY; without even the implied warranty of
16; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17; GNU General Public License for more details.
18; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19;
20
21; Section containing code
22SECTION .text
23
24%ifdef INCLUDE_DISPLAY_LIBRARY
25  %ifndef DISPLAY_JUMP_ALIGN
26    %define DISPLAY_JUMP_ALIGN 1
27  %endif
28    %include "CgaSnow.asm"
29    %include "Display.asm"
30    %include "DisplayCharOut.asm"
31    %include "DisplayContext.asm"
32    %include "DisplayCursor.asm"
33    %include "DisplayPage.asm"
34    %include "DisplayPrint.asm"                 ; must come before DisplayFormat/DisplayFormatCompressed
35%ifdef MODULE_STRINGS_COMPRESSED
36    %include "DisplayFormatCompressed.asm"
37%else
38    %include "DisplayFormat.asm"
39%endif
40%endif
41
42%ifdef INCLUDE_FILE_LIBRARY
43    %include "Directory.asm"
44    %include "DosCritical.asm"
45    %include "Drive.asm"
46    %include "FileIO.asm"
47%endif
48
49%ifdef INCLUDE_KEYBOARD_LIBRARY
50  %ifndef KEYBOARD_JUMP_ALIGN
51    %define KEYBOARD_JUMP_ALIGN 1
52  %endif
53    %include "Keyboard.asm"
54%endif
55
56%ifdef INCLUDE_MENU_LIBRARY
57  %ifndef MENU_JUMP_ALIGN
58    %define MENU_JUMP_ALIGN 1
59  %endif
60    %include "CharOutLineSplitter.asm"
61    %include "Menu.asm"
62    %include "MenuAttributes.asm"
63    %include "MenuBorders.asm"
64    %include "MenuCharOut.asm"
65    %include "MenuEvent.asm"
66    %include "MenuInit.asm"
67    %include "MenuLocation.asm"
68    %include "MenuLoop.asm"
69    %include "MenuScrollbars.asm"
70    %include "MenuText.asm"
71    %include "MenuTime.asm"
72
73    %ifdef INCLUDE_MENU_DIALOGS
74        %include "Dialog.asm"
75        %include "DialogDrive.asm"
76        %include "DialogFile.asm"
77        %include "DialogMessage.asm"
78        %include "DialogProgress.asm"
79        %include "DialogSelection.asm"
80        %include "DialogString.asm"
81        %include "DialogWord.asm"
82        %include "ItemLineSplitter.asm"
83        %include "StringsForDialogs.asm"
84    %endif
85%endif
86
87%ifdef INCLUDE_STRING_LIBRARY
88  %ifndef STRING_JUMP_ALIGN
89    %define STRING_JUMP_ALIGN 1
90  %endif
91    %include "Char.asm"
92    %ifndef EXCLUDE_FROM_XUB OR EXCLUDE_FROM_BIOSDRVS
93        %include "String.asm"
94        %include "StringProcess.asm"
95    %endif
96%endif
97
98%ifdef INCLUDE_SERIAL_LIBRARY
99    %include "Serial.inc"
100%endif
101%ifdef INCLUDE_SERIALSERVER_LIBRARY
102    %include "SerialServer.asm"
103    %include "SerialServerScan.asm"
104    %define INCLUDE_TIME_LIBRARY
105%endif
106
107%ifdef INCLUDE_TIME_LIBRARY
108    %ifndef EXCLUDE_FROM_XUB
109        %include "Delay.asm"
110        %ifndef EXCLUDE_FROM_XTIDECFG
111            %include "SystemTimer.asm"
112        %endif
113    %endif
114    %include "TimerTicks.asm"
115%endif
116
117%ifdef INCLUDE_UTIL_LIBRARY
118  %ifndef UTIL_SIZE_JUMP_ALIGN
119    %define UTIL_SIZE_JUMP_ALIGN 1
120  %endif
121    %ifndef EXCLUDE_FROM_XUB
122        %ifndef EXCLUDE_FROM_BIOSDRVS
123            %include "Bit.asm"
124        %endif
125        %include "Math.asm"
126    %endif
127    %ifndef EXCLUDE_FROM_BIOSDRVS
128        %include "Registers.asm"
129        %include "Reboot.asm"
130        %include "Memory.asm"
131    %endif
132    %include "Size.asm"
133    %ifndef EXCLUDE_FROM_XUB OR EXCLUDE_FROM_BIOSDRVS
134        %include "Sort.asm"
135    %endif
136%endif
137
Note: See TracBrowser for help on using the repository browser.