Changeset 176 in xtideuniversalbios


Ignore:
Timestamp:
Oct 22, 2011, 9:20:14 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Made a module around the EBIOS code, so that it can be turned off to make room for serial code, still enabled by default in the Makefile

Location:
trunk/XTIDE_Universal_BIOS
Files:
6 edited

Legend:

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

    r175 r176  
    2828    .ideVars3       resb    IDEVARS_size
    2929
     30%ifdef MODULE_SERIAL
    3031    .ideVarsSerialAuto  resb    IDEVARS_size
     32%endif
    3133endstruc
    3234
     
    3436FLG_ROMVARS_FULLMODE    EQU (1<<0)  ; Full operating mode (steals base RAM, supports EBIOS etc.)
    3537FLG_ROMVARS_DRVXLAT     EQU (1<<2)  ; Enable drive number translation
     38
    3639%ifdef MODULE_SERIAL
    3740FLG_ROMVARS_MODULE_SERIAL   EQU (1<<3)
    3841%else
    3942FLG_ROMVARS_MODULE_SERIAL   EQU 0
     43%endif
     44
     45%ifdef MODULE_EBIOS
     46FLG_ROMVARS_MODULE_EBIOS    EQU (1<<4)
     47%else
     48FLG_ROMVARS_MODULE_EBIOS    EQU 0
    4049%endif
    4150
  • trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm

    r169 r176  
    2020    jmp     ax
    2121
    22 
     22%ifdef MODULE_EBIOS
     23;;;
     24;;; TODO: This code may be dead, even with EBIOS enabled?
     25;;;
     26       
    2327;--------------------------------------------------------------------
    2428; Idepack_ConvertDapToIdepackAndIssueCommandFromAH
     
    5862    les     si, [es:si+DAP.dwMemoryAddress]
    5963    jmp     SHORT GetDeviceControlByteToIdepackAndStartTransfer
    60 
     64%endif
    6165
    6266;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm

    r167 r176  
    3636    shl     bx, 1
    3737    cmp     ah, 25h                     ; Possible EBIOS function?
     38%ifdef MODULE_EBIOS
    3839    ja      SHORT .JumpToEbiosFunction
     40%else
     41    ja      SHORT Int13h_UnsupportedFunction
     42%endif
    3943    jmp     [cs:bx+g_rgw13hFuncJump]    ; Jump to BIOS function
    4044
     45%ifdef MODULE_EBIOS
    4146    ; Jump to correct EBIOS function
    4247ALIGN JUMP_ALIGN
     
    5156    jl      SHORT Int13h_UnsupportedFunction
    5257    jmp     [cs:bx+g_rgwEbiosFunctionJumpTable]
    53 
     58%endif
    5459
    5560;--------------------------------------------------------------------
     
    241246    dw  AH25h_HandlerForGetDriveInformation             ; 25h, Get Drive Information (PS/1)
    242247
     248%ifdef MODULE_EBIOS
    243249g_rgwEbiosFunctionJumpTable:
    244250    dw  AH41h_HandlerForCheckIfExtensionsPresent        ; 41h, Check if Extensions Present (EBIOS)*
     
    260266;  ** = Enhanced Disk Drive (EDD) Support
    261267; *** = Drive Locking and Ejecting Support
     268%endif
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/CommandLookup.asm

    r167 r176  
    55SECTION .text
    66
     7%ifdef MODULE_EBIOS
    78;--------------------------------------------------------------------
    89; CommandLookup_GetEbiosIndexToBX
     
    2728    or      bx, dx                  ; Set block mode / single sector bit
    2829    ret
    29 
     30%endif
     31       
    3032;--------------------------------------------------------------------
    3133; CommandLookup_GetOldInt13hIndexToBX
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r175 r176  
    1919%include "IdeRegisters.inc"     ; For ATA Registers, flags and commands
    2020%include "Int13h.inc"           ; Equates for INT 13h functions
     21%ifdef MODULE_EBIOS
    2122%include "EBIOS.inc"            ; Equates for EBIOS functions
     23%endif
    2224%include "CustomDPT.inc"        ; For Disk Parameter Table
    2325%include "RomVars.inc"          ; For ROMVARS and IDEVARS structs
     
    5456;---------------------------;
    5557%ifdef USE_AT
    56     at  ROMVARS.wFlags,         dw  FLG_ROMVARS_FULLMODE | FLG_ROMVARS_DRVXLAT | FLG_ROMVARS_MODULE_SERIAL
     58    at  ROMVARS.wFlags,         dw  FLG_ROMVARS_FULLMODE | FLG_ROMVARS_DRVXLAT | FLG_ROMVARS_MODULE_SERIAL | FLG_ROMVARS_MODULE_EBIOS
    5759    at  ROMVARS.wDisplayMode,   dw  DEFAULT_TEXT_MODE
    5860    at  ROMVARS.wBootTimeout,   dw  30 * TICKS_PER_SECOND   ; Boot Menu selection timeout
     
    99101; XT and XT+ Build default settings ;
    100102;-----------------------------------;
    101     at  ROMVARS.wFlags,         dw  FLG_ROMVARS_DRVXLAT | FLG_ROMVARS_MODULE_SERIAL
     103    at  ROMVARS.wFlags,         dw  FLG_ROMVARS_DRVXLAT | FLG_ROMVARS_MODULE_SERIAL | FLG_ROMVARS_MODULE_EBIOS     
    102104    at  ROMVARS.wDisplayMode,   dw  DEFAULT_TEXT_MODE
    103105    at  ROMVARS.wBootTimeout,   dw  30 * TICKS_PER_SECOND   ; Boot Menu selection timeout
     
    203205%include "AH24h_HSetBlocks.asm" ; Required by Int13h_Jump.asm
    204206%include "AH25h_HDrvID.asm"     ; Required by Int13h_Jump.asm
     207%ifdef MODULE_EBIOS
    205208%include "AH41h_CheckIfExtensionsPresent.asm"
    206209%include "AH42h_ExtendedReadSectors.asm"
     
    209212%include "AH47h_ExtendedSeek.asm"
    210213%include "AH48h_GetExtendedDriveParameters.asm"
     214%endif
    211215
    212216
  • trunk/XTIDE_Universal_BIOS/makefile

    r165 r176  
    6565# Assembler preprocessor defines.                               #
    6666#################################################################
    67 DEFINES = INCLUDE_MENU_LIBRARY EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
     67DEFINES = INCLUDE_MENU_LIBRARY EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS MODULE_EBIOS
    6868DEFINES_XT = ELIMINATE_CGA_SNOW
    6969DEFINES_XTPLUS = ELIMINATE_CGA_SNOW USE_186
Note: See TracChangeset for help on using the changeset viewer.