Changeset 399 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus


Ignore:
Timestamp:
Apr 19, 2012, 10:39:44 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Added Power Management (Standby Timer) support to the BIOS and made it part of an optional module (MODULE_FEATURE_SETS). The total amount of ROM space used by this feature is 37 bytes. UNTESTED
  • Size optimizations (mostly inlining of procedures) and fixed a few bugs in AH9h_HInit.asm:
    1. DPT_ATA.bInitError would be cleared only if MODULE_SERIAL was not defined.
    2. The FLG_INITERROR_FAILED_TO_SET_BLOCK_MODE flag could never be set.
    3. InitializeBlockMode could potentially loop forever if there was an error.
  • Removed some odd looking code in .PushResetStatus in BootMenuPrintCfg.asm
  • Made some changes to XTIDECFG so it can be built.
Location:
trunk/XTIDE_Universal_BIOS/Src/Menus
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm

    r397 r399  
    33
    44;
    5 ; XTIDE Universal BIOS and Associated Tools 
     5; XTIDE Universal BIOS and Associated Tools
    66; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    77;
     
    1010; the Free Software Foundation; either version 2 of the License, or
    1111; (at your option) any later version.
    12 ; 
     12;
    1313; This program is distributed in the hope that it will be useful,
    1414; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1616; GNU General Public License for more details.
    17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html               
    18 ;       
     17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     18;
    1919
    2020; Section containing code
     
    145145;   5  3.5" ED on some BIOSes      3 1/2   2.88M
    146146;   6  FLOPPY_TYPE_35_ED           3 1/2   2.88M
    147 ;   >6 Unknwon, handled above
     147;   >6 Unknown, handled above
    148148;
    149149;--------------------------------------------------------------------
     
    159159    push    ax                                          ; "5 1/4" or "3 1/2"
    160160
     161    xor     bh, bh
    161162    mov     al,FloppyTypes.rgbCapacityMultiplier
    162     mov     bh, 0
    163     mul     byte [cs:bx+FloppyTypes.rgbCapacity - 1]    ; -1 since 0 is handled above and not in the table
     163    mul     BYTE [cs:bx+FloppyTypes.rgbCapacity - 1]    ; -1 since 0 is handled above and not in the table
    164164
    165165.PushAXAndOutput:
     
    202202    push    dx                      ; Magnitude character
    203203
    204     test    di,di
     204    test    di, di
    205205    jz      SHORT BootMenuPrint_RefreshInformation.FormatRelay
    206206
  • trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrintCfg.asm

    r392 r399  
    22; Description   :   Functions for printing drive configuration
    33;                   information on Boot Menu.
    4 ; 
     4;
    55; Included by BootMenuPrint.asm, this routine is to be inserted into
    66; BootMenuPrint_HardDiskRefreshInformation.
     
    88
    99;
    10 ; XTIDE Universal BIOS and Associated Tools 
     10; XTIDE Universal BIOS and Associated Tools
    1111; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    1212;
     
    1515; the Free Software Foundation; either version 2 of the License, or
    1616; (at your option) any later version.
    17 ; 
     17;
    1818; This program is distributed in the hope that it will be useful,
    1919; but WITHOUT ANY WARRANTY; without even the implied warranty of
    2020; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2121; GNU General Public License for more details.
    22 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html               
     22; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    2323;
    24                
     24
    2525; Section containing code
    2626SECTION .text
     
    131131;--------------------------------------------------------------------
    132132.PushResetStatus:
    133     xor     ax, ax
    134 %ifdef MODULE_SERIAL
    135     test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
    136     jnz     SHORT .AlwaysSuccess
    137133    mov     al, [di+DPT_ATA.bInitError]
    138 .AlwaysSuccess:
    139 %endif
    140134    push    ax
    141135
  • trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm

    r395 r399  
    33
    44;
    5 ; XTIDE Universal BIOS and Associated Tools 
     5; XTIDE Universal BIOS and Associated Tools
    66; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
    77;
     
    1010; the Free Software Foundation; either version 2 of the License, or
    1111; (at your option) any later version.
    12 ; 
     12;
    1313; This program is distributed in the hope that it will be useful,
    1414; but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1616; GNU General Public License for more details.
    17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html       
    18 ;       
     17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     18;
    1919
    2020; Section containing code
     
    382382
    383383.StoreDriveLetter:
    384     adc     di, BYTE 0          ; Add 1 if Floppy Drive
     384    adc     di, BYTE 1          ; Add CF if Floppy Drive
    385385    xchg    ax, cx
    386     mov     [es:di+1], al       ; AH = zero to clear function hotkey
     386    mov     [es:di], al         ; AH = zero to clear function hotkey
    387387
    388388.StoreFunctionHotkeyFromAH:
Note: See TracChangeset for help on using the changeset viewer.