Ignore:
Timestamp:
Feb 17, 2012, 11:19:10 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Simplified the bug fix I did in r242.
  • Fixed a couple of new bugs in Reboot.asm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm

    r242 r251  
    234234SingleByteRead:
    235235%ifdef USE_186  ; INS instruction available
    236     dec     cx          ; Avoid overflowing CX on a 128 sector transfer
    237236    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
    239239    rep insb
    240     insb
    241240%else           ; If 8088/8086
    242241    shr     cx, 1       ; WORD count to DWORD count
     
    329328SingleByteWrite:
    330329%ifdef USE_186  ; OUTS instruction available
    331     dec     cx          ; Avoid overflowing CX on a 128 sector transfer
    332330    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
    337334%else           ; If 8088/8086
    338335    shr     cx, 1       ; WORD count to DWORD count
Note: See TracChangeset for help on using the changeset viewer.