Changeset 148 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Mar 19, 2011, 8:09:41 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • INT 13h optimizations to save almost 100 bytes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r145 r148  
    149149;               Cleared if drive belongs to some other BIOS
    150150;   Corrupts registers:
    151 ;       DI
     151;       Nothing
    152152;--------------------------------------------------------------------
    153153ALIGN JUMP_ALIGN
    154154RamVars_IsDriveHandledByThisBIOS:
    155     xchg    di, ax                              ; Backup AX
     155    push    ax
    156156    mov     ax, [RAMVARS.wDrvCntAndFirst]       ; Drive count to AL, First number to AH
    157157    add     al, ah                              ; One past last drive to AL
     
    161161    ja      SHORT .DriveNotHandledByThisBIOS
    162162    stc
    163 ALIGN JUMP_ALIGN
    164163.DriveNotHandledByThisBIOS:
    165     xchg    ax, di
     164    pop     ax
    166165    ret
    167166
Note: See TracChangeset for help on using the changeset viewer.