Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm
- Timestamp:
- Mar 4, 2012, 1:35:10 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm
r285 r294 22 22 ; ES:DI: Floppy DPT (for floppies only) 23 23 ; AH: Int 13h/40h floppy return status 24 ; CF: 0 if successful l, 1 if error24 ; CF: 0 if successful, 1 if error 25 25 ;-------------------------------------------------------------------- 26 26 AH8h_HandlerForReadDiskDriveParameters: … … 31 31 jnc SHORT .MidGame 32 32 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 33 34 .OurDrive: 33 34 .OurDrive: 35 35 call AH8h_GetDriveParameters 36 36 … … 41 41 %endif 42 42 ;; fall-through 43 44 .MidGame: 43 44 .MidGame: 45 45 call RamVars_GetCountOfKnownDrivesToAX ; assume hard disk for now, will discard if for floppies 46 46 47 47 test byte [bp+IDEPACK.intpack+INTPACK.dl], 080h 48 48 jnz .Done 49 49 50 50 mov [bp+IDEPACK.intpack+INTPACK.bl], bl 51 51 52 52 mov [bp+IDEPACK.intpack+INTPACK.es], es 53 mov [bp+IDEPACK.intpack+INTPACK.di], di 53 mov [bp+IDEPACK.intpack+INTPACK.di], di 54 54 55 55 call FloppyDrive_GetCountToAX 56 56 57 .Done: 57 .Done: 58 58 mov ah, dh 59 59 60 60 mov [bp+IDEPACK.intpack+INTPACK.cx], cx 61 61 xchg [bp+IDEPACK.intpack+INTPACK.dx], ax ; recover DL for BDA last status byte determination … … 63 63 xor ah, ah 64 64 %ifdef MODULE_SERIAL_FLOPPY 65 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH_ALHasDriveNumber 65 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH_ALHasDriveNumber 66 66 %else 67 67 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH … … 118 118 eSHR_IM bl,FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION 119 119 %endif 120 %endif 120 %endif 121 121 ret 122 122 … … 127 127 ; So we return fixed values out of the ROM for callers who might be expecting this information. 128 128 ; 129 ; On AT systems, we return the information for a 1.44 MB disk, 129 ; On AT systems, we return the information for a 1.44 MB disk, 130 130 ; and on XT systems, we return the information for a 360 KB disk. 131 131 ; … … 138 138 139 139 db 1h << 1 | 0 ; Offset 1: Typical values of 1 for head load time 140 ; DMA used (although it actually is not, but is more restr ctive)141 db 25h ; Offset 2: Inactivi y motor turn-off delay,140 ; DMA used (although it actually is not, but is more restrictive) 141 db 25h ; Offset 2: Inactivity motor turn-off delay, 142 142 ; Typical value of 25h for 2 second delay 143 143 db 02h ; Offset 3: Sector size, always 512 … … 161 161 db 0f6h ; Offset 8: Fill byte for format 162 162 db 0fh ; Offset 9: Head setting time 163 db 08h ; Offset A: Wait for motor start putime163 db 08h ; Offset A: Wait for motor startup time 164 164 165 165 %ifdef USE_AT
Note: See TracChangeset
for help on using the changeset viewer.