Changeset 419 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Timestamp:
- May 6, 2012, 2:34:35 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Device/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r417 r419 108 108 .ReadLastBlockFromDrive: 109 109 mov cl, [bp+PIOVARS.bSectorsLeft] ; CH is already zero 110 push cx 110 111 call [bp+PIOVARS.fnXfer] ; Transfer possibly partial block 111 112 … … 115 116 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_BSY) 116 117 call IdeWait_PollStatusFlagInBLwithTimeoutInBH 118 pop cx ; [bp+PIOVARS.bSectorsLeft] 119 jc SHORT ReturnWithTransferErrorInAH 120 121 ; All rectors succesfully transferred 122 add cx, [bp+PIOVARS.bSectorsDone] ; Never sets CF 123 ret 117 124 118 125 ; Return number of successfully read sectors … … 175 182 .WriteLastBlockToDrive: 176 183 mov cl, [bp+PIOVARS.bSectorsLeft] ; CH is already zero 184 push cx 177 185 %ifdef USE_186 178 186 push CheckErrorsAfterTransferringLastBlock -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/JrIdeTransfer.asm
r417 r419 110 110 .ReadLastBlockFromDrive: 111 111 mov cl, [bp+MEMPIOVARS.bSectorsLeft] 112 push cx 112 113 call ReadSingleBlockFromSectorAccessWindowInDSSItoESDI 113 114 … … 117 118 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_BSY) 118 119 call IdeWait_PollStatusFlagInBLwithTimeoutInBH 120 pop cx ; [bp+MEMPIOVARS.bSectorsLeft] 121 jc SHORT ReturnWithMemoryIOtransferErrorInAH 122 123 ; All rectors succesfully transferred 124 add cx, [bp+PIOVARS.bSectorsDone] ; Never sets CF 125 ret 119 126 120 127 ; Return number of successfully transferred sectors … … 175 182 .WriteLastBlockToDrive: 176 183 mov cl, [bp+MEMPIOVARS.bSectorsLeft] 184 push cx 177 185 ePUSH_T bx, CheckErrorsAfterTransferringLastMemoryMappedBlock 178 186 ; Fall to WriteSingleBlockFromDSSIToSectorAccessWindowInESDI
Note:
See TracChangeset
for help on using the changeset viewer.