Ignore:
Timestamp:
Oct 27, 2012, 11:26:11 AM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • XT-CF DMA transfers should now work.
File:
1 edited

Legend:

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

    r473 r480  
    215215;       AX, BX, CX
    216216;--------------------------------------------------------------------
    217 %ifdef USE_186  ; Also used by XTIDE rev 2 when 80186/80188 commands allowed
    218 ALIGN JUMP_ALIGN
     217ALIGN JUMP_ALIGN
     218%ifdef USE_186
    219219IdePioBlock_ReadFromXtideRev2:
     220%endif
    220221IdePioBlock_ReadFrom16bitDataPort:
    221222    xchg    cl, ch      ; Sectors to WORDs
    222     rep insw
    223     ret
    224 %endif
    225 
    226 ;--------------------------------------------------------------------
    227 %ifdef USE_AT
     223    rep
     224    db      6Dh         ; INSW
     225    ret
     226
     227;--------------------------------------------------------------------
    228228ALIGN JUMP_ALIGN
    229229IdePioBlock_ReadFrom32bitDataPort:
    230     shl     cx, 7       ; Sectors to DWORDs
     230    db      0C1h        ; SHL
     231    db      0E1h        ; CX
     232    db      7           ; 7 (Sectors to DWORDs)
    231233    rep
    232234    db      66h         ; Override operand size to 32-bit
    233235    db      6Dh         ; INSW/INSD
    234236    ret
    235 %endif
    236237
    237238
     
    248249;       AX, BX, CX, DX
    249250;--------------------------------------------------------------------
    250 %ifdef USE_AT
    251 
    252251ALIGN JUMP_ALIGN
    253252IdePioBlock_WriteTo16bitDataPort:
    254253    xchg    cl, ch      ; Sectors to WORDs
    255254    es                  ; Source is ES segment
    256     rep outsw
     255    rep
     256    db      6Fh         ; OUTSW
    257257    ret
    258258
     
    260260ALIGN JUMP_ALIGN
    261261IdePioBlock_WriteTo32bitDataPort:
    262     shl     cx, 7       ; Sectors to DWORDs
     262    db      0C1h        ; SHL
     263    db      0E1h        ; CX
     264    db      7           ; 7 (Sectors to DWORDs)
    263265    es                  ; Source is ES segment
    264266    rep
     
    266268    db      6Fh         ; OUTSW/OUTSD
    267269    ret
    268 
    269 %endif ; USE_AT
Note: See TracChangeset for help on using the changeset viewer.