Changeset 170 in xtideuniversalbios


Ignore:
Timestamp:
Aug 22, 2011, 2:25:51 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to all parts of the project:

  • Minor size optimizations
  • Commented away some ALIGN JUMP_ALIGN directives in the Int13h handler (they are either in init procedures, procedures that are rarely called or are unnecessary due to conditional assembly)
  • Fixed what appears to be a typo in EBIOS.inc
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm

    r141 r170  
    265265.FilterCurrentDirectory:
    266266    cmp     WORD [si+DTA.szFile], CURRENTDIR_CHARACTERS
    267     jne     SHORT .ReturnWithoutFiltering
    268     add     sp, BYTE 2      ; Remove return address from stack
     267    je      SHORT .ReturnWithFiltering
    269268    ret
    270269
     
    275274    cmp     WORD [si+DTA.szFile], UPDIR_CHARACTERS
    276275    jne     SHORT .ReturnWithoutFiltering
     276.ReturnWithFiltering:
    277277    add     sp, BYTE 2      ; Remove return address from stack
    278278ALIGN JUMP_ALIGN, ret
  • trunk/Configurator/Src/Libraries/menu/menudraw.asm

    r78 r170  
    1 ; File name     :   menudraw.asm
    21; Project name  :   Menu library
    3 ; Created date  :   9.11.2009
    4 ; Last update   :   4.1.2011
    5 ; Author        :   Tomi Tilli,
    6 ;               :   Krister Nordvall (optimizations)
    72; Description   :   ASM library to menu system.
    83;                   Contains menu drawing functions.
     
    164159;   call    MenuDraw_ItemBorders            ; Draw borders to clear old strings
    165160ALIGN JUMP_ALIGN
    166 MenuDraw_AllItemsNoBord:   
     161MenuDraw_AllItemsNoBord:
    167162    cmp     WORD [bp+MENUVARS.wItemCnt], 0  ; Any items to draw?
    168163    jz      MenuDraw_NothingToDraw          ;  If not, return
     
    358353    mov     dh, B_TR
    359354    jmp     SHORT MenuDraw_BorderChars
    360    
     355
    361356ALIGN JUMP_ALIGN
    362357MenuDraw_StringBorder:
     
    447442    cmp     ax, bx                      ; Need scroll bars?
    448443    jbe     .Return                     ;  If not, return
    449    
     444
    450445    ; Calculate last menuitem index for thumb char on this line
    451446    push    bx                          ; Store number of visible menuitems
     
    462457    jc      .Return                     ;  If so, draw thumb
    463458    mov     dh, T_V                     ; Load track character
    464 ALIGN JUMP_ALIGN
     459ALIGN JUMP_ALIGN, ret
    465460.Return:
    466461    ret
  • trunk/XTIDE_Universal_BIOS/Inc/EBIOS.inc

    r169 r170  
    1010ENHANCED_DRIVE_ACCESS_SUPPORT       EQU (1<<0)  ; 41h, 42h, 43h 44h, 47h and 48h are available
    1111DRIVE_LOCKING_AND_EJECTING_SUPPORT  EQU (1<<1)  ; 41h, 45h, 46h, 48h, 49h are available and INT 15h, AH=52h
    12 ENHANDED_DISK_DRIVE_SUPPORT         EQU (1<<2)  ; 41h, 48h, 4Eh are available (EDD)
     12ENHANCED_DISK_DRIVE_SUPPORT         EQU (1<<2)  ; 41h, 48h, 4Eh are available (EDD)
    1313
    1414
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm

    r169 r170  
    3535
    3636    ; Are we reading or writing?
    37     test    al, 16  ; Bit 4 is cleared on all the read commands but set on 3 of the 4 write commands
    38     jnz     SHORT .PrepareToWriteDataFromESSI
    39     cmp     al, COMMAND_WRITE_MULTIPLE
    40     je      SHORT .PrepareToWriteDataFromESSI
     37    test    al, 11001b
     38    jpo     SHORT .PrepareToWriteDataFromESSI
    4139
    4240    ; Prepare to read data to ESSI
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH23h_HFeatures.asm

    r162 r170  
    5555;       AL, BX, CX, DX
    5656;--------------------------------------------------------------------
    57 ALIGN JUMP_ALIGN
     57;ALIGN JUMP_ALIGN
    5858AH23h_SetControllerFeatures:
    5959    mov     al, COMMAND_SET_FEATURES
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH24h_HSetBlocks.asm

    r162 r170  
    5151;       AL, BX, CX, DX
    5252;--------------------------------------------------------------------
    53 ALIGN JUMP_ALIGN
     53;ALIGN JUMP_ALIGN
    5454AH24h_SetBlockSize:
    5555    MIN_U   al, MAX_SUPPORTED_BLOCK_SIZE_IN_SECTORS
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH25h_HDrvID.asm

    r167 r170  
    4343;       AL, BX, CX, DX
    4444;--------------------------------------------------------------------
    45 ALIGN JUMP_ALIGN
     45;ALIGN JUMP_ALIGN
    4646AH25h_GetDriveInformationToBufferInESSI:
    4747    push    es
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r162 r170  
    4141;       AL, BX, DX
    4242;--------------------------------------------------------------------
    43 ALIGN JUMP_ALIGN
     43;ALIGN JUMP_ALIGN
    4444AH9h_InitializeDriveForUse:
    4545    push    cx
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm

    r162 r170  
    4242;       AL, CX, SI, DI
    4343;--------------------------------------------------------------------
    44 ALIGN JUMP_ALIGN
     44;ALIGN JUMP_ALIGN
    4545AHDh_ResetDrive:
    4646    push    dx
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/EBIOS/AH48h_GetExtendedDriveParameters.asm

    r169 r170  
    3939    mov     ds, [bp+IDEPACK.intpack+INTPACK.ds]
    4040    mov     ax, MINIMUM_EDRIVEINFO_SIZE
    41     cmp     WORD [di+EDRIVE_INFO.wSize], ax
     41    cmp     [di+EDRIVE_INFO.wSize], ax
    4242    jb      SHORT AH42h_ReturnWithInvalidFunctionError
    4343    je      SHORT .SkipEddConfigurationParameters
    4444
    4545    ; We do not support EDD Configuration Parameters so set to FFFF:FFFFh
    46     xor     ax, ax
    47     dec     ax          ; AX = FFFFh
     46    mov     ax, -1      ; AX = FFFFh
    4847    mov     [di+EDRIVE_INFO.fpEDDparams], ax
    4948    mov     [di+EDRIVE_INFO.fpEDDparams+2], ax
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Dialogs.asm

    r109 r170  
    125125    call    InitializeDialogInputFromDSSI
    126126    mov     WORD [si+DIALOG_INPUT.fszTitle], g_szDlgExitToDos
    127     mov     WORD [si+DIALOG_INPUT.fszItems], g_szMultichoiceBooleanFlag
    128     CALL_MENU_LIBRARY GetSelectionToAXwithInputInDSSI
    129     add     sp, BYTE DIALOG_INPUT_size
    130     cmp     ax, BYTE 1      ; 1 = YES
    131 
    132     pop     ds
    133     ret
     127    jmp     Dialogs_DisplayQuitAndSaveChangesDialogsSharedEnding
    134128
    135129
     
    142136    call    InitializeDialogInputFromDSSI
    143137    mov     WORD [si+DIALOG_INPUT.fszTitle], g_szDlgSaveChanges
     138Dialogs_DisplayQuitAndSaveChangesDialogsSharedEnding:
    144139    mov     WORD [si+DIALOG_INPUT.fszItems], g_szMultichoiceBooleanFlag
    145140    CALL_MENU_LIBRARY GetSelectionToAXwithInputInDSSI
Note: See TracChangeset for help on using the changeset viewer.