Changeset 116 in xtideuniversalbios for trunk/Assembly_Library/Src


Ignore:
Timestamp:
Feb 26, 2011, 11:55:06 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to all parts of the project:

  • Removed a redundant macro (HPIO_NORMALIZE_PTR)
  • Deleted XTIDE_Universal_BIOS/Inc/BiosData.inc since that was also redundant.
  • Size optimization: Changed the LOAD_BDA_SEGMENT_TO macro to use the stack on 186+ processors (the old behaviour can still be used where needed).
  • Made other minor size optimizations and cleanups to various functions, mostly in the Int13h handler.
Location:
trunk/Assembly_Library/Src
Files:
3 edited

Legend:

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

    r41 r116  
    1 ; File name     :   Directory.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   3.9.2010
    4 ; Last update   :   6.9.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for accessing directories.
    73
     
    7066    push    dx
    7167
    72     xor     dx, dx              ; Default drive (00h)
    73     mov     ah, GET_CURRENT_DIRECTORY
     68    mov     ah, GET_CURRENT_DIRECTORY   ; GET_CURRENT_DIRECTORY = 47h
     69    cwd                                 ; Default drive (00h)
    7470    int     DOS_INTERRUPT_21h
    7571
     
    131127; Directory_UpdateDTAForNextMatchUsingPreviousParameters
    132128;   Parameters:
    133 ;       Nothing (Parameters from previous call to 
     129;       Nothing (Parameters from previous call to
    134130;               Directory_UpdateDTAForFirstMatchForDSSIwithAttributesInCX are used)
    135131;   Returns:
  • trunk/Assembly_Library/Src/Menu/MenuAttributes.asm

    r104 r116  
    4848    push    ds
    4949
    50     LOAD_BDA_SEGMENT_TO ds, ax
     50    LOAD_BDA_SEGMENT_TO ds, ax, !
    5151    mov     al, [VIDEO_BDA.bMode]       ; Load BIOS display mode (0, 1, 2, 3 or 7)
    5252    cmp     al, 7
     
    7373    pop     ds
    7474    ret
    75 
    7675
    7776
  • trunk/Assembly_Library/Src/Menu/MenuInit.asm

    r104 r116  
    1919    push    es
    2020    push    ds
    21     LOAD_BDA_SEGMENT_TO ds, cx
     21    LOAD_BDA_SEGMENT_TO ds, cx, !
    2222    push    WORD [BDA.wVidCurShape]
    2323    mov     cl, MENU_size
     
    7474    call    MenuText_RefreshTitle           ; Draw title strings
    7575    call    MenuText_RefreshAllItems        ; Draw item strings
    76     jmp     MenuText_RefreshInformation     ; Draw information strings 
     76    jmp     MenuText_RefreshInformation     ; Draw information strings
    7777
    7878
Note: See TracChangeset for help on using the changeset viewer.