Changeset 158 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
- Timestamp:
- May 2, 2011, 9:41:51 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r157 r158 166 166 ; InitializePiovarsInSSBPwithSectorCountInAX 167 167 ; Parameters: 168 ; AX: Number of sectors to transfer ( 0=65536)168 ; AX: Number of sectors to transfer (1...65535) 169 169 ; BX: Offset to transfer function lookup table 170 170 ; DS:DI: Ptr to DPT (in RAMVARS segment) … … 179 179 ; Store number of blocks to transfer 180 180 eMOVZX cx, BYTE [di+DPT_ATA.bSetBlock] ; Block size in sectors 181 xor dx, dx 182 test ax, ax 183 eCMOVZ dl, 1 ; DX:AX = Sectors to transfer (1...65536) 181 xor dx, dx ; DX:AX = Sectors to transfer (1...65535) 184 182 div cx ; AX = Full blocks to transfer 185 183 test dx, dx … … 197 195 198 196 ; Get transfer function based on bus type 199 xchg ax, bx 197 xchg ax, bx ; Lookup table offset to AX 200 198 eMOVZX bx, BYTE [di+DPT.bIdevarsOffset] ; CS:BX now points to IDEVARS 201 199 mov dx, [cs:bx+IDEVARS.wPort] ; Load IDE Data port address
Note:
See TracChangeset
for help on using the changeset viewer.