Changeset 84 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm


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.asm

    r43 r84  
    22; Project name  :   IDE BIOS
    33; Created date  :   21.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 BIOS functions (Floppy and Hard disk).
    78
     
    6364    ja      SHORT Int13h_UnsupportedFunction
    6465    mov     di, ax
     66%ifndef USE_186 ; This uses 9 bytes less and is about 5 cycles faster
     67    mov     al, ah                      ; Copy bits in AH to AL and then
     68    shl     al, 1                       ; shift them "back" 1 step
     69    and     al, 7Eh                     ; AND them (clears the MSB)
     70    cbw                                 ; Clear AH using sign extension
     71    xchg    di, ax                      ; and finally swap DI with AX
     72%else
    6573    eSHR_IM di, 7                       ; Shift function to DI...
    6674    and     di, BYTE 7Eh                ; ...and prepare for word lookup
     75%endif
    6776    jmp     [cs:di+g_rgw13hFuncJump]    ; Jump to BIOS function
    6877
Note: See TracChangeset for help on using the changeset viewer.