Changeset 248 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Feb 13, 2012, 1:22:18 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Booting with hotkey now properly maintains FD and HD drive swappings (it is now again possible to boot with both translated FD and HD drives).
  • Had to change file orders so compressed strings could be included after recent changes to Assembly Library size.
Location:
trunk/XTIDE_Universal_BIOS
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/RamVars.inc

    r233 r248  
    1010; Variables for translating drive numbers.
    1111struc XLATEVARS
     12    .wFDandHDswap:
    1213    .bFDSwap        resb    1   ; Floppy Drive to swap to 00h and vice versa
    1314    .bHDSwap        resb    1   ; Hard Drive to swap to 80h and vice versa
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm

    r243 r248  
    2727
    2828;--------------------------------------------------------------------
     29; BootMenu_GetDriveToDXforMenuitemInCX_And_RamVars_GetSegmentToDS
    2930; BootMenu_GetDriveToDXforMenuitemInCX
    3031;   Parameters:
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuEvent.asm

    r241 r248  
    134134    cmp     ax, [bp+MENUINIT.wItems]
    135135    jae     SHORT BootMenuEvent_EventCompleted  ; Invalid key
     136
     137    ; Highlighting new item resets drive translation and we do not want that.
     138    ; We must be able to translate both floppy drive and hard drive when using hotkey.
     139    call    RamVars_GetSegmentToDS 
     140    mov     dx, [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap]
    136141    CALL_MENU_LIBRARY HighlightItemFromAX
     142    or      [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], dx
    137143    ; Fall to .ItemSelectedFromCX
    138144
     
    143149.ItemSelectedFromCX:
    144150    CALL_MENU_LIBRARY Close
    145        
     151
    146152BootMenuEvent_EventCompleted:
    147153    stc
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DriveXlate.asm

    r181 r248  
    8585ALIGN JUMP_ALIGN
    8686DriveXlate_Reset:
    87     mov     WORD [RAMVARS.xlateVars], 8000h ; .bFDSwap and .bHDSwap
     87    mov     WORD [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], 8000h
    8888    ret
    8989
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r243 r248  
    154154iend
    155155
    156     ; Libraries and data
     156    ; Libraries, data, Initialization and drive detection
    157157    %include "AssemblyLibrary.asm"
    158 %ifdef MODULE_STRINGS_COMPRESSED
    159     %include "StringsCompressed.asm"
    160 %else
    161     %include "Strings.asm"          ; For BIOS message strings
    162 %endif
    163 
    164     ; Initialization and drive detection
    165158    %include "Initialize.asm"       ; For BIOS initialization
    166159    %include "Interrupts.asm"       ; For Interrupt initialization
    167160    %include "RamVars.asm"          ; For RAMVARS initialization and access
     161%ifdef MODULE_STRINGS_COMPRESSED
     162    %include "StringsCompressed.asm"
     163%else
     164    %include "Strings.asm"          ; For BIOS message strings
     165%endif
    168166    %include "CreateDPT.asm"        ; For creating DPTs
    169167    %include "FindDPT.asm"          ; For finding DPTs
     
    173171    %include "DetectDrives.asm"     ; For detecting IDE drives
    174172    %include "DetectPrint.asm"      ; For printing drive detection strings
    175        
     173
    176174    ; Boot menu
    177175    %include "BootMenu.asm"         ; For Boot Menu operations
Note: See TracChangeset for help on using the changeset viewer.