Ignore:
Timestamp:
Aug 20, 2011, 6:37:44 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hopefully this commit is successful. Sorry for the mess.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH3h_HWrite.asm

    r158 r165  
    1515;       SS:BP:  Ptr to IDEREGS_AND_INTPACK
    1616;   Parameters on INTPACK:
    17 ;       AL:     Number of sectors to write
     17;       AL:     Number of sectors to write (1...127)
    1818;       CH:     Cylinder number, bits 7...0
    1919;       CL:     Bits 7...6: Cylinder number bits 9 and 8
     
    2828AH3h_HandlerForWriteDiskSectors:
    2929    cmp     BYTE [bp+IDEPACK.intpack+INTPACK.al], 0
    30     je      SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero
     30    jle     SHORT AH2h_ExitInt13hSinceSectorCountInIntpackIsZero
    3131
    32     mov     ah, COMMAND_WRITE_SECTORS   ; Load sector mode command
    33     test    BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED
    34     eCMOVNZ ah, COMMAND_WRITE_MULTIPLE  ; Load block mode command
     32    xor     bx, bx
     33    call    CommandLookup_OrOldInt13hIndexToBL
     34    mov     ah, [cs:bx+g_rgbWriteCommandLookup]
    3535    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ)
    3636    mov     si, [bp+IDEPACK.intpack+INTPACK.bx]
Note: See TracChangeset for help on using the changeset viewer.