Changeset 547 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src
- Timestamp:
- Apr 21, 2013, 3:47:11 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm
r526 r547 48 48 49 49 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 50 %if FLGH_DPT_SERIAL_DEVICE != 0x4 || FLGH_DPT_SERIAL_FLOPPY != 0x10 || FLGH_DPT_SERIAL_FLOPPY_TYPE_MASK != 0xe0 || FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION != 5 51 %error "The serial server passes FLGH values into SerialDPT_Finalize directly. If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients" 52 %endif 50 %ifdef MODULE_SERIAL_FLOPPY 51 %if FLGH_DPT_SERIAL_DEVICE != 0x4 || FLGH_DPT_SERIAL_FLOPPY != 0x10 || FLGH_DPT_SERIAL_FLOPPY_TYPE_MASK != 0xe0 || FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION != 5 52 %error "The serial server passes FLGH values into SerialDPT_Finalize directly. If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients" 53 %endif 54 %else 55 %if FLGH_DPT_SERIAL_DEVICE != 0x4 56 %error "The serial server passes FLGH values into SerialDPT_Finalize directly. If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients" 57 %endif 58 %endif ; MODULE_SERIAL_FLOPPY 53 59 %endif -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
r526 r547 23 23 ;-------------------------------------------------------------------- 24 24 ; Int 13h function AH=15h, Read Disk Drive Size. 25 ; 26 ; It is unclear what is the total number of sectors to return. 27 ; Award BIOS from 1997 returns full capacity instead of L-CHS limit 28 ; like we do. I think it makes more sense if this function returns 29 ; L-CHS limit. 25 30 ; 26 31 ; AH15h_HandlerForReadDiskDriveSize -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Prepare.asm
r526 r547 45 45 46 46 ; Make sure that sector count is valid 47 mov al, [es:si+DAP.wSectorCount] 48 test al, al 49 jz SHORT ZeroSectorsRequestedSoNoErrors 50 js SHORT InvalidNumberOfSectorsRequested 51 52 %if 0 ; Slow version in the unlikely case that high byte needs to be checked. 47 53 mov ax, [es:si+DAP.wSectorCount] 48 54 test ax, ax … … 50 56 cmp ax, BYTE 127 51 57 ja SHORT InvalidNumberOfSectorsRequested 58 %endif 52 59 53 60 ; Get EBIOS command index to BX … … 55 62 call Prepare_GetOldInt13hCommandIndexToBX 56 63 mov al, [di+DPT.bFlagsLow] 57 eSHL_IMal, 1 ; Set CF if LBA48 supported64 shl al, 1 ; Set CF if LBA48 supported 58 65 adc bl, bh ; LBA48 EXT commands 59 66 ret -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r529 r547 86 86 87 87 %ifdef MODULE_HOTKEYS 88 ; Last hard drive might have scrolled Hotkey Bar out of screen. 89 ; We want to display it during wait. 90 call HotkeyBar_UpdateDuringDriveDetection 91 88 92 .WaitUntilTimeToCloseHotkeyBar: 89 93 call TimerTicks_ReadFromBdaToAX -
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r526 r547 246 246 247 247 ; Get boot drive letters 248 call FloppyDrive_GetCountToAX 249 mov ah, 'A' ; AH = First Floppy Drive letter (always 'A') 250 add al, ah 251 MAX_U al, 'C' ; AL = First Hard Drive letter ('C', 'D', or 'E') 248 call BootVars_GetLetterForFirstHardDriveToAX 252 249 test dl, dl 253 eCMOVNS al, ah250 eCMOVNS al, DEFAULT_FLOPPY_DRIVE_LETTER 254 251 push ax 255 252 -
trunk/XTIDE_Universal_BIOS/Src/Initialization/FloppyDrive.asm
r531 r547 158 158 ; Set if BIOS function not supported 159 159 ; Corrupts registers: 160 ; AH , ES160 ; AH 161 161 ;-------------------------------------------------------------------- 162 162 FloppyDrive_GetCountFromBIOS_or_BDA: -
trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
r528 r547 32 32 ;-------------------------------------------------------------------- 33 33 DriveXlate_ConvertDriveLetterInDLtoDriveNumber: 34 call DriveXlate_GetLetterForFirstHardDriveToAX34 call BootVars_GetLetterForFirstHardDriveToAX 35 35 cmp dl, al 36 36 jb SHORT .ConvertLetterInDLtoFloppyDriveNumber … … 68 68 69 69 ; Store default hard drive to boot from 70 call DriveXlate_GetLetterForFirstHardDriveToAX70 call BootVars_GetLetterForFirstHardDriveToAX 71 71 add dl, al 72 72 stc … … 75 75 .GetDefaultFloppyDrive: 76 76 sub dl, 80h - DEFAULT_FLOPPY_DRIVE_LETTER ; Clears CF 77 ret78 79 80 ;--------------------------------------------------------------------81 ; Returns letter for first hard disk. Usually it will be 'C' but it82 ; can be higher if more than two floppy drives are found.83 ;84 ; DriveXlate_GetLetterForFirstHardDriveToAX85 ; Parameters:86 ; DS: RAMVARS segment87 ; Returns:88 ; AX: Upper case letter for first hard disk89 ; Corrupts registers:90 ; Nothing91 ;--------------------------------------------------------------------92 DriveXlate_GetLetterForFirstHardDriveToAX:93 call FloppyDrive_GetCountToAX94 add al, DEFAULT_FLOPPY_DRIVE_LETTER95 MAX_U al, DEFAULT_HARD_DRIVE_LETTER96 77 ret 97 78 -
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r528 r547 90 90 ; AX, CX, DX, SI, DI 91 91 ;-------------------------------------------------------------------- 92 call DriveXlate_GetLetterForFirstHardDriveToAX92 call BootVars_GetLetterForFirstHardDriveToAX 93 93 mov ah, ANGLE_QUOTE_RIGHT 94 94 mov cl, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bHddLetter] … … 397 397 ; Determine if Floppy or Hard Drive hotkey 398 398 xchg cx, ax 399 call DriveXlate_GetLetterForFirstHardDriveToAX399 call BootVars_GetLetterForFirstHardDriveToAX 400 400 cmp cl, al 401 401 jb SHORT .StoreDriveLetter ; Store Floppy Drive letter -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r542 r547 176 176 ; BL: Number of L-CHS heads (?...240) 177 177 ; CX: Number of bits shifted (0...3) 178 ; D L: ADDRESSING_MODE_NORMAL or ADDRESSING_MODE_LARGE178 ; DX: ADDRESSING_MODE_NORMAL or ADDRESSING_MODE_LARGE 179 179 ; Corrupts registers: 180 180 ; Nothing … … 218 218 ; ConvertPCHfromAXBLtoEnhancedCHinAXBL: 219 219 ; Parameters: 220 ; AX: Number of P-CHS cylinders (1...8192 )220 ; AX: Number of P-CHS cylinders (1...8192, or up to 17475 if fell from above) 221 221 ; BL: Number of P-CHS heads (1...16) 222 222 ; Returns: 223 223 ; AX: Number of L-CHS cylinders (?...1024) 224 ; BL: Number of L-CHS heads (?...128 )224 ; BL: Number of L-CHS heads (?...128, or up to 240 if fell from above) 225 225 ; CX: Number of bits shifted (0...3) 226 ; D L: TRANSLATEMODE_NORMAL or TRANSLATEMODE_LARGE226 ; DX: TRANSLATEMODE_NORMAL or TRANSLATEMODE_LARGE 227 227 ; Corrupts registers: 228 228 ; Nothing 229 229 ;-------------------------------------------------------------------- 230 230 ConvertPCHfromAXBLtoEnhancedCHinAXBL: 231 cwd ; Assume TRANSLATEMODE_NORMAL 231 232 xor cx, cx ; No bits to shift initially 232 xor dl, dl ; Assume TRANSLATEMODE_NORMAL233 233 .ShiftIfMoreThan1024Cylinder: 234 234 cmp ax, MAX_LCHS_CYLINDERS -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm
r545 r547 59 59 ;-------------------------------------------------------------------- 60 60 BootVars_StoreDefaultDriveLettersToHotkeyVars: 61 mov WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], DEFAULT_FLOPPY_DRIVE_LETTER | (DEFAULT_HARD_DRIVE_LETTER<<8) 61 call BootVars_GetLetterForFirstHardDriveToAX 62 mov ah, DEFAULT_FLOPPY_DRIVE_LETTER 63 xchg al, ah 64 mov [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wFddAndHddLetters], ax 62 65 ret 63 66 64 67 %endif ; MODULE_HOTKEYS 68 69 70 ;-------------------------------------------------------------------- 71 ; Returns letter for first hard disk. Usually it will be 'C' but it 72 ; can be higher if more than two floppy drives are found. 73 ; 74 ; BootVars_GetLetterForFirstHardDriveToAX 75 ; Parameters: 76 ; DS: RAMVARS segment 77 ; Returns: 78 ; AX: Upper case letter for first hard disk 79 ; Corrupts registers: 80 ; Nothing 81 ;-------------------------------------------------------------------- 82 BootVars_GetLetterForFirstHardDriveToAX: 83 call FloppyDrive_GetCountToAX 84 add al, DEFAULT_FLOPPY_DRIVE_LETTER ; First Hard Drive letter comes after last floppy drive letter... 85 MAX_U al, DEFAULT_HARD_DRIVE_LETTER ; ...but it can never be 'A' or 'B' 86 ret -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
r545 r547 109 109 ; Store P-CHS and flags 110 110 call AtaGeometry_GetPCHStoAXBLBHfromAtaInfoInESSI 111 dec d x; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL111 dec dl ; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL 112 112 js SHORT .NothingToChange 113 113 jz SHORT .LimitHeadsForLargeAddressingMode -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r531 r547 197 197 ret 198 198 %endif 199 200 201 %if 0 ; unused...202 ;--------------------------------------------------------------------203 ; RamVars_IsDriveDetectionInProgress204 ; Parameters:205 ; DS: RAMVARS segment206 ; Returns:207 ; ZF: Set if drive detection is in progress (ROM initialization)208 ; Corrupts registers:209 ; None210 ;--------------------------------------------------------------------211 RamVars_IsDriveDetectionInProgress:212 cmp WORD [RAMVARS.wSignature], RAMVARS_DRV_DETECT_SIGNATURE213 ret214 %endif
Note:
See TracChangeset
for help on using the changeset viewer.