Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/Menupages


Ignore:
Timestamp:
Mar 4, 2012, 1:33:52 AM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Commit 1/2 (Library, Configurators and Serial Server):

  • Changed Emulate.inc so that making 286 and 386 versions now works. Additionally, only one processor type define is needed in the makefile.
  • Minor optimizations.
  • Fixed spelling and did some cleaning.
Location:
trunk/Configurator/Src/Menupages
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configurator/Src/Menupages/ConfigurationMenu.asm

    r2 r293  
    1 ; File name     :   ConfigurationMenu.asm
    2 ; Project name  :   XTIDE Univeral BIOS Configurator
    3 ; Created date  :   21.4.2010
    4 ; Last update   :   2.5.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS Configurator
    62; Description   :   XTIDE Universal BIOS configuration menu.
    73
     
    226222;       SS:BP:  Ptr to MENUVARS
    227223;   Returns:
    228 ;       CF:     Set if user data inputted succesfully
     224;       CF:     Set if user data inputted successfully
    229225;               Cleared if cancel
    230226;   Corrupts registers:
     
    245241;       SS:BP:  Ptr to MENUVARS
    246242;   Returns:
    247 ;       CF:     Set if user data inputted succesfully
     243;       CF:     Set if user data inputted successfully
    248244;               Cleared if cancel
    249245;   Corrupts registers:
     
    358354    call    ConfigurationMenu_GetNumberOfIdeControllers
    359355    dec     cx                  ; First always visible
    360     jcxz    .Return
     356    j    .Return
    361357    mov     bx, g_MenuPageItemCfgIde2+MENUPAGEITEM.bFlags
    362358ALIGN JUMP_ALIGN
     
    381377ALIGN JUMP_ALIGN
    382378ConfigurationMenu_GetNumberOfIdeControllers:
     379    mov     cx, 1               ; Assume one controller for Lite mode
    383380    test    WORD [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.wFlags], FLG_ROMVARS_FULLMODE
    384     jz      SHORT .ReturnOneControllerForLiteMode
    385     eMOVZX  cx, BYTE [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.bIdeCnt]
    386     ret
    387 ALIGN JUMP_ALIGN
    388 .ReturnOneControllerForLiteMode:
    389     mov     cx, 1
    390     ret
     381    jz      SHORT .Return
     382    mov     cl, [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.bIdeCnt]
     383ALIGN JUMP_ALIGN, ret
     384.Return:
     385    ret
  • trunk/Configurator/Src/Menupages/DrvParamsMenu.asm

    r2 r293  
    1 ; File name     :   DrvParamsMenu.asm
    2 ; Project name  :   XTIDE Univeral BIOS Configurator
    3 ; Created date  :   26.4.2010
    4 ; Last update   :   27.4.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS Configurator
    62; Description   :   Menu for configuring DRVPARAMS.
    73
     
    109105ALIGN JUMP_ALIGN
    110106DrvParamsMenu_SetDrvParamsOffset:
    111     eMOVZX  cx, BYTE [g_MenuPageDrvParams+MENUPAGE.bItemCnt]
     107    eMOVZX  cx, [g_MenuPageDrvParams+MENUPAGE.bItemCnt]
    112108    dec     cx
    113109    mov     bx, g_MenuPageItemDrvBlockMode+MENUPAGEITEM.pValue
  • trunk/Configurator/Src/Menupages/FlashMenu.asm

    r181 r293  
    1 ; Project name  :   XTIDE Univeral BIOS Configurator
     1; Project name  :   XTIDE Universal BIOS Configurator
    22; Description   :   Flash menu.
    33
    44
    55; Flash error codes returned from progress bar task function
    6 ERR_FLASH_SUCCESSFULL   EQU     0
     6ERR_FLASH_SUCCESSFUL    EQU     0
    77ERR_FLASH_POLL_TIMEOUT  EQU     1
    88
     
    132132    call    MenuPageItem_GetByteFromUserWithoutMarkingUnsaved
    133133    jnc     SHORT .Cancel
    134     eMOVZX  bx, BYTE [g_cfgVars+CFGVARS.bPageSize]
     134    eMOVZX  bx, [g_cfgVars+CFGVARS.bPageSize]
    135135    eBSR    ax, bx                  ; AX = Index of highest order bit
    136136    mov     cx, 1
     
    185185    xor     dx, dx
    186186    mov     ax, [g_cfgVars+CFGVARS.wEepromSize]     ; DX:AX = Bytes to write
    187     eMOVZX  cx, BYTE [g_cfgVars+CFGVARS.bPageSize]
     187    eMOVZX  cx, [g_cfgVars+CFGVARS.bPageSize]
    188188    div     cx                                      ; AX = Total number of pages
    189189    mov     [g_cfgVars+CFGVARS.flashVars+FLASHVARS.wTotalPages], ax
     
    255255ALIGN JUMP_ALIGN
    256256.FlashComplete:
    257     mov     ax, ERR_FLASH_SUCCESSFULL
     257    mov     ax, ERR_FLASH_SUCCESSFUL
    258258    retf
    259259.Timeout:
     
    278278    mov     ax, [si+FLASHVARS.wTotalPages]
    279279    sub     ax, [si+FLASHVARS.wPagesLeft]           ; AX=Pages written
    280     eMOVZX  dx, BYTE [g_cfgVars+CFGVARS.bPageSize]
     280    eMOVZX  dx, [g_cfgVars+CFGVARS.bPageSize]
    281281    mul     dx                                      ; AX=Bytes written
    282282
     
    311311    mov     dx, [si+FLASHVARS.wPagesBeforeDraw]
    312312    call    FlashMenu_GetPointersToPageToFlash
    313     eMOVZX  ax, BYTE [g_cfgVars+CFGVARS.bSdpCommand]
    314     eMOVZX  cx, BYTE [g_cfgVars+CFGVARS.bPageSize]
     313    eMOVZX  ax, [g_cfgVars+CFGVARS.bSdpCommand]
     314    eMOVZX  cx, [g_cfgVars+CFGVARS.bPageSize]
    315315ALIGN JUMP_ALIGN
    316316.PageLoop:
     
    405405    cmp     ax, ERR_FLASH_POLL_TIMEOUT
    406406    je      SHORT FlashMenu_PollingTimeoutErrorDuringFlashing
    407     call    Flash_WasDataWriteSuccessfull
     407    call    Flash_WasDataWriteSuccessful
    408408    jne     SHORT FlashMenu_DataVerifyErrorAfterFlashing
    409409    ; Fall to FlashMenu_EepromFlashedSuccessfully
  • trunk/Configurator/Src/Menupages/IdeControllerMenu.asm

    r2 r293  
    1 ; File name     :   IdeControllerMenu.asm
    2 ; Project name  :   XTIDE Univeral BIOS Configurator
    3 ; Created date  :   23.4.2010
    4 ; Last update   :   27.4.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS Configurator
    62; Description   :   Menu for configuring IDEVARS.
    73
     
    119115
    120116;--------------------------------------------------------------------
    121 ; Stores IDEVARS specific pointers to IDE Controller Menu 
     117; Stores IDEVARS specific pointers to IDE Controller Menu
    122118; MENUPAGEITEM structs.
    123119;
     
    133129ALIGN JUMP_ALIGN
    134130IdeControllerMenu_SetIdevarsOffset:
    135     eMOVZX  cx, BYTE [g_MenuPageIdeVars+MENUPAGE.bItemCnt]
     131    eMOVZX  cx, [g_MenuPageIdeVars+MENUPAGE.bItemCnt]
    136132    dec     cx
    137133    mov     bx, g_MenuPageItemIdeMaster+MENUPAGEITEM.pValue
Note: See TracChangeset for help on using the changeset viewer.