Changeset 251 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Feb 17, 2012, 11:19:10 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r242 r251 234 234 SingleByteRead: 235 235 %ifdef USE_186 ; INS instruction available 236 dec cx ; Avoid overflowing CX on a 128 sector transfer237 236 shl cx, 1 ; WORD count to BYTE count 238 inc cx 237 dec cx ; Fix for CX overflowing on a 128 sector transfer 238 insb 239 239 rep insb 240 insb241 240 %else ; If 8088/8086 242 241 shr cx, 1 ; WORD count to DWORD count … … 329 328 SingleByteWrite: 330 329 %ifdef USE_186 ; OUTS instruction available 331 dec cx ; Avoid overflowing CX on a 128 sector transfer332 330 shl cx, 1 ; WORD count to BYTE count 333 inc cx 334 es ; Source is ES segment 335 rep outsb 336 es outsb 331 dec cx ; Fix for CX overflowing on a 128 sector transfer 332 es outsb ; Source is ES segment 333 rep es outsb 337 334 %else ; If 8088/8086 338 335 shr cx, 1 ; WORD count to DWORD count
Note:
See TracChangeset
for help on using the changeset viewer.