Changeset 224 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS


Ignore:
Timestamp:
Jan 26, 2012, 2:41:13 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • EBIOS functions now work again (sector count was lost).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm

    r221 r224  
    2525;   Parameters:
    2626;       AH:     IDE command to issue
    27 ;       AL:     Number of sectors to transfer (for xfer commands)
    2827;       BH:     Timeout ticks
    2928;       BL:     IDE Status Register flag to wait after command
     
    4039ALIGN JUMP_ALIGN
    4140Idepack_ConvertDapToIdepackAndIssueCommandFromAH:
     41    mov     al, [es:si+DAP.wSectorCount]
    4242    mov     [bp+IDEPACK.bSectorCount], al
    4343    mov     [bp+IDEPACK.bCommand], ah
     
    5858
    5959    ; Normalize data buffer pointer to ES:SI
    60     mov     ax, [es:si+DAP.dwMemoryAddress]     ; Load offset
     60    mov     ax, [es:si+DAP.wOffset]
    6161    mov     cx, ax
    6262    eSHR_IM ax, 4                               ; Divide offset by 16
    63     add     ax, [es:si+DAP.dwMemoryAddress+2]   ; Add segment
     63    add     ax, [es:si+DAP.wSegment]            ; Add segment
    6464    mov     es, ax                              ; Segment normalized
    6565    mov     si, cx
Note: See TracChangeset for help on using the changeset viewer.