Ignore:
Timestamp:
Jan 14, 2011, 10:57:46 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Minor size optimizations in various files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH14h_HDiag.asm

    r35 r84  
    22; Project name  :   IDE BIOS
    33; Created date  :   28.9.2007
    4 ; Last update   :   24.8.2010
    5 ; Author        :   Tomi Tilli
     4; Last update   :   14.1.2011
     5; Author        :   Tomi Tilli,
     6;               :   Krister Nordvall (optimizations)
    67; Description   :   Int 13h function AH=14h, Controller Internal Diagnostic.
    78
     
    3132    mov     al, [di+DPT.bReset]         ; Load reset byte to AL
    3233    test    al, al                      ; Any error?
    33     jnz     SHORT .ReturnError
     34    mov     ah, RET_HD_RESETFAIL        ; Assume there was an error
     35    stc
     36    jnz     SHORT .Return
    3437    xor     ah, ah                      ; Zero AH and CF since success
     38.Return:
    3539    jmp     Int13h_PopDiDsAndReturn
    36 .ReturnError:
    37     mov     ah, RET_HD_RESETFAIL
    38     stc
    39     jmp     Int13h_PopDiDsAndReturn
Note: See TracChangeset for help on using the changeset viewer.