- Timestamp:
- Jan 26, 2012, 2:41:13 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/Idepack.asm
r221 r224 25 25 ; Parameters: 26 26 ; AH: IDE command to issue 27 ; AL: Number of sectors to transfer (for xfer commands)28 27 ; BH: Timeout ticks 29 28 ; BL: IDE Status Register flag to wait after command … … 40 39 ALIGN JUMP_ALIGN 41 40 Idepack_ConvertDapToIdepackAndIssueCommandFromAH: 41 mov al, [es:si+DAP.wSectorCount] 42 42 mov [bp+IDEPACK.bSectorCount], al 43 43 mov [bp+IDEPACK.bCommand], ah … … 58 58 59 59 ; Normalize data buffer pointer to ES:SI 60 mov ax, [es:si+DAP. dwMemoryAddress] ; Load offset60 mov ax, [es:si+DAP.wOffset] 61 61 mov cx, ax 62 62 eSHR_IM ax, 4 ; Divide offset by 16 63 add ax, [es:si+DAP. dwMemoryAddress+2]; Add segment63 add ax, [es:si+DAP.wSegment] ; Add segment 64 64 mov es, ax ; Segment normalized 65 65 mov si, cx
Note:
See TracChangeset
for help on using the changeset viewer.