Changeset 133 in xtideuniversalbios for trunk/Assembly_Library/Src/File/Drive.asm


Ignore:
Timestamp:
Mar 12, 2011, 1:48:48 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Size optimizations in various files in the Assembly Library. Also a very small change to a string in XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/File/Drive.asm

    r41 r133  
    1 ; File name     :   Drive.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   1.9.2010
    4 ; Last update   :   3.9.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for accessing drives.
    73
     
    5248    xor     bx, bx
    5349    xor     ax, ax              ; Temporary use BX:AX for flags
    54     xor     dx, dx              ; Start from drive 0
     50    cwd                         ; Start from drive 0
    5551    call    .CheckDriveValidityUntilCXisZero
    5652    mov     dx, bx              ; Flags now in DX:AX
     
    163159Drive_GetDefaultToAL:
    164160    mov     ah, GET_CURRENT_DEFAULT_DRIVE
    165     int     DOS_INTERRUPT_21h
    166     ret
     161    SKIP2B  f   ; cmp ax, <next instruction>
     162    ; Fall to Drive_SetDefaultFromDL
    167163
    168164
     
    176172;       AH
    177173;--------------------------------------------------------------------
    178 ALIGN JUMP_ALIGN
    179174Drive_SetDefaultFromDL:
    180175    mov     ah, SELECT_DEFAULT_DRIVE
    181176    int     DOS_INTERRUPT_21h
    182177    ret
    183    
Note: See TracChangeset for help on using the changeset viewer.