Changeset 176 in xtideuniversalbios
- Timestamp:
- Oct 22, 2011, 9:20:14 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc
r175 r176 28 28 .ideVars3 resb IDEVARS_size 29 29 30 %ifdef MODULE_SERIAL 30 31 .ideVarsSerialAuto resb IDEVARS_size 32 %endif 31 33 endstruc 32 34 … … 34 36 FLG_ROMVARS_FULLMODE EQU (1<<0) ; Full operating mode (steals base RAM, supports EBIOS etc.) 35 37 FLG_ROMVARS_DRVXLAT EQU (1<<2) ; Enable drive number translation 38 36 39 %ifdef MODULE_SERIAL 37 40 FLG_ROMVARS_MODULE_SERIAL EQU (1<<3) 38 41 %else 39 42 FLG_ROMVARS_MODULE_SERIAL EQU 0 43 %endif 44 45 %ifdef MODULE_EBIOS 46 FLG_ROMVARS_MODULE_EBIOS EQU (1<<4) 47 %else 48 FLG_ROMVARS_MODULE_EBIOS EQU 0 40 49 %endif 41 50 -
trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm
r169 r176 20 20 jmp ax 21 21 22 22 %ifdef MODULE_EBIOS 23 ;;; 24 ;;; TODO: This code may be dead, even with EBIOS enabled? 25 ;;; 26 23 27 ;-------------------------------------------------------------------- 24 28 ; Idepack_ConvertDapToIdepackAndIssueCommandFromAH … … 58 62 les si, [es:si+DAP.dwMemoryAddress] 59 63 jmp SHORT GetDeviceControlByteToIdepackAndStartTransfer 60 64 %endif 61 65 62 66 ;-------------------------------------------------------------------- -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm
r167 r176 36 36 shl bx, 1 37 37 cmp ah, 25h ; Possible EBIOS function? 38 %ifdef MODULE_EBIOS 38 39 ja SHORT .JumpToEbiosFunction 40 %else 41 ja SHORT Int13h_UnsupportedFunction 42 %endif 39 43 jmp [cs:bx+g_rgw13hFuncJump] ; Jump to BIOS function 40 44 45 %ifdef MODULE_EBIOS 41 46 ; Jump to correct EBIOS function 42 47 ALIGN JUMP_ALIGN … … 51 56 jl SHORT Int13h_UnsupportedFunction 52 57 jmp [cs:bx+g_rgwEbiosFunctionJumpTable] 53 58 %endif 54 59 55 60 ;-------------------------------------------------------------------- … … 241 246 dw AH25h_HandlerForGetDriveInformation ; 25h, Get Drive Information (PS/1) 242 247 248 %ifdef MODULE_EBIOS 243 249 g_rgwEbiosFunctionJumpTable: 244 250 dw AH41h_HandlerForCheckIfExtensionsPresent ; 41h, Check if Extensions Present (EBIOS)* … … 260 266 ; ** = Enhanced Disk Drive (EDD) Support 261 267 ; *** = Drive Locking and Ejecting Support 268 %endif -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/CommandLookup.asm
r167 r176 5 5 SECTION .text 6 6 7 %ifdef MODULE_EBIOS 7 8 ;-------------------------------------------------------------------- 8 9 ; CommandLookup_GetEbiosIndexToBX … … 27 28 or bx, dx ; Set block mode / single sector bit 28 29 ret 29 30 %endif 31 30 32 ;-------------------------------------------------------------------- 31 33 ; CommandLookup_GetOldInt13hIndexToBX -
trunk/XTIDE_Universal_BIOS/Src/Main.asm
r175 r176 19 19 %include "IdeRegisters.inc" ; For ATA Registers, flags and commands 20 20 %include "Int13h.inc" ; Equates for INT 13h functions 21 %ifdef MODULE_EBIOS 21 22 %include "EBIOS.inc" ; Equates for EBIOS functions 23 %endif 22 24 %include "CustomDPT.inc" ; For Disk Parameter Table 23 25 %include "RomVars.inc" ; For ROMVARS and IDEVARS structs … … 54 56 ;---------------------------; 55 57 %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 57 59 at ROMVARS.wDisplayMode, dw DEFAULT_TEXT_MODE 58 60 at ROMVARS.wBootTimeout, dw 30 * TICKS_PER_SECOND ; Boot Menu selection timeout … … 99 101 ; XT and XT+ Build default settings ; 100 102 ;-----------------------------------; 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 102 104 at ROMVARS.wDisplayMode, dw DEFAULT_TEXT_MODE 103 105 at ROMVARS.wBootTimeout, dw 30 * TICKS_PER_SECOND ; Boot Menu selection timeout … … 203 205 %include "AH24h_HSetBlocks.asm" ; Required by Int13h_Jump.asm 204 206 %include "AH25h_HDrvID.asm" ; Required by Int13h_Jump.asm 207 %ifdef MODULE_EBIOS 205 208 %include "AH41h_CheckIfExtensionsPresent.asm" 206 209 %include "AH42h_ExtendedReadSectors.asm" … … 209 212 %include "AH47h_ExtendedSeek.asm" 210 213 %include "AH48h_GetExtendedDriveParameters.asm" 214 %endif 211 215 212 216 -
trunk/XTIDE_Universal_BIOS/makefile
r165 r176 65 65 # Assembler preprocessor defines. # 66 66 ################################################################# 67 DEFINES = INCLUDE_MENU_LIBRARY EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 67 DEFINES = INCLUDE_MENU_LIBRARY EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS MODULE_EBIOS 68 68 DEFINES_XT = ELIMINATE_CGA_SNOW 69 69 DEFINES_XTPLUS = ELIMINATE_CGA_SNOW USE_186
Note:
See TracChangeset
for help on using the changeset viewer.