Changeset 165 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH3h_HWrite.asm
- Timestamp:
- Aug 20, 2011, 6:37:44 PM (14 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH3h_HWrite.asm
r158 r165 15 15 ; SS:BP: Ptr to IDEREGS_AND_INTPACK 16 16 ; Parameters on INTPACK: 17 ; AL: Number of sectors to write 17 ; AL: Number of sectors to write (1...127) 18 18 ; CH: Cylinder number, bits 7...0 19 19 ; CL: Bits 7...6: Cylinder number bits 9 and 8 … … 28 28 AH3h_HandlerForWriteDiskSectors: 29 29 cmp BYTE [bp+IDEPACK.intpack+INTPACK.al], 0 30 j e SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero30 jle SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero 31 31 32 mov ah, COMMAND_WRITE_SECTORS ; Load sector mode command33 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED34 eCMOVNZ ah, COMMAND_WRITE_MULTIPLE ; Load block mode command32 xor bx, bx 33 call CommandLookup_OrOldInt13hIndexToBL 34 mov ah, [cs:bx+g_rgbWriteCommandLookup] 35 35 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ) 36 36 mov si, [bp+IDEPACK.intpack+INTPACK.bx]
Note:
See TracChangeset
for help on using the changeset viewer.