Changeset 251 in xtideuniversalbios


Ignore:
Timestamp:
Feb 17, 2012, 11:19:10 PM (13 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
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Reboot.asm

    r247 r251  
    1313;--------------------------------------------------------------------
    1414Reboot_ComputerWithBootFlagInAX:
    15     LOAD_BDA_SEGMENT_TO dx, bx
     15    LOAD_BDA_SEGMENT_TO ds, bx
    1616    mov     [BDA.wBoot], ax         ; Store boot flag
    1717    ; Fall to Reboot_AT
     
    2929    out     64h, al                 ; Reset computer (AT+)
    3030%ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS
    31     mov     al, 10
     31    mov     ax, 10
    3232    call    Delay_MicrosecondsFromAX
    3333%else
     
    5151    mov     es, ax
    5252    mov     ss, ax
    53     jmp     WORD 0FFFFh:0h          ; XT reset
     53    jmp     0FFFFh:0                ; XT reset
  • 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.