Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.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/AH15h_HSize.asm
r285 r294 14 14 ; SS:BP: Ptr to IDEPACK 15 15 ; Returns with INTPACK: 16 ; If succes full:16 ; If successful: 17 17 ; AH: Hard Disk: 3 (Hard disk accessible) 18 18 ; Floppy: 1 (Floppy disk, without change detection) … … 28 28 %ifdef MODULE_SERIAL_FLOPPY 29 29 mov cl, 1 ; 1 = floppy disk, no change detection 30 31 test dl,dl ; DO NOT store the sector count if this is a 32 jns .FloppyDrive ; floppy disk, some OS's depend on this not 30 31 test dl,dl ; DO NOT store the sector count if this is a 32 jns .FloppyDrive ; floppy disk, some OS's depend on this not 33 33 ; happening for floppies in order to boot. 34 34 %endif 35 35 36 36 call AH15h_GetSectorCountToBXDXAX 37 37 mov [bp+IDEPACK.intpack+INTPACK.cx], dx ; HIWORD to CX 38 38 xchg [bp+IDEPACK.intpack+INTPACK.dx], ax ; LOWORD to DX, AL gets drive number 39 39 40 xor ah, ah 41 %ifdef MODULE_SERIAL_FLOPPY 40 xor ah, ah 41 %ifdef MODULE_SERIAL_FLOPPY 42 42 mov cl, 3 ; 3 = Hard Disk Accessible 43 43 .FloppyDrive: 44 45 call Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH_ALHasDriveNumber ; Store success to BDA and CF 46 mov BYTE[bp+IDEPACK.intpack+INTPACK.ah], cl44 45 call Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH_ALHasDriveNumber ; Store success to BDA and CF 46 mov [bp+IDEPACK.intpack+INTPACK.ah], cl 47 47 %else 48 call Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH ; Store success to BDA and CF 48 call Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH ; Store success to BDA and CF 49 49 mov BYTE [bp+IDEPACK.intpack+INTPACK.ah], 3 50 %endif 51 50 %endif 51 52 52 jmp Int13h_ReturnFromHandlerWithoutStoringErrorCode 53 53
Note: See TracChangeset
for help on using the changeset viewer.