Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/Menupages
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- 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 6 2 ; Description : XTIDE Universal BIOS configuration menu. 7 3 … … 226 222 ; SS:BP: Ptr to MENUVARS 227 223 ; Returns: 228 ; CF: Set if user data inputted succes fully224 ; CF: Set if user data inputted successfully 229 225 ; Cleared if cancel 230 226 ; Corrupts registers: … … 245 241 ; SS:BP: Ptr to MENUVARS 246 242 ; Returns: 247 ; CF: Set if user data inputted succes fully243 ; CF: Set if user data inputted successfully 248 244 ; Cleared if cancel 249 245 ; Corrupts registers: … … 358 354 call ConfigurationMenu_GetNumberOfIdeControllers 359 355 dec cx ; First always visible 360 j cxz.Return356 jz .Return 361 357 mov bx, g_MenuPageItemCfgIde2+MENUPAGEITEM.bFlags 362 358 ALIGN JUMP_ALIGN … … 381 377 ALIGN JUMP_ALIGN 382 378 ConfigurationMenu_GetNumberOfIdeControllers: 379 mov cx, 1 ; Assume one controller for Lite mode 383 380 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] 383 ALIGN 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 6 2 ; Description : Menu for configuring DRVPARAMS. 7 3 … … 109 105 ALIGN JUMP_ALIGN 110 106 DrvParamsMenu_SetDrvParamsOffset: 111 eMOVZX cx, BYTE[g_MenuPageDrvParams+MENUPAGE.bItemCnt]107 eMOVZX cx, [g_MenuPageDrvParams+MENUPAGE.bItemCnt] 112 108 dec cx 113 109 mov bx, g_MenuPageItemDrvBlockMode+MENUPAGEITEM.pValue -
trunk/Configurator/Src/Menupages/FlashMenu.asm
r181 r293 1 ; Project name : XTIDE Univer al BIOS Configurator1 ; Project name : XTIDE Universal BIOS Configurator 2 2 ; Description : Flash menu. 3 3 4 4 5 5 ; Flash error codes returned from progress bar task function 6 ERR_FLASH_SUCCESSFUL LEQU 06 ERR_FLASH_SUCCESSFUL EQU 0 7 7 ERR_FLASH_POLL_TIMEOUT EQU 1 8 8 … … 132 132 call MenuPageItem_GetByteFromUserWithoutMarkingUnsaved 133 133 jnc SHORT .Cancel 134 eMOVZX bx, BYTE[g_cfgVars+CFGVARS.bPageSize]134 eMOVZX bx, [g_cfgVars+CFGVARS.bPageSize] 135 135 eBSR ax, bx ; AX = Index of highest order bit 136 136 mov cx, 1 … … 185 185 xor dx, dx 186 186 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] 188 188 div cx ; AX = Total number of pages 189 189 mov [g_cfgVars+CFGVARS.flashVars+FLASHVARS.wTotalPages], ax … … 255 255 ALIGN JUMP_ALIGN 256 256 .FlashComplete: 257 mov ax, ERR_FLASH_SUCCESSFUL L257 mov ax, ERR_FLASH_SUCCESSFUL 258 258 retf 259 259 .Timeout: … … 278 278 mov ax, [si+FLASHVARS.wTotalPages] 279 279 sub ax, [si+FLASHVARS.wPagesLeft] ; AX=Pages written 280 eMOVZX dx, BYTE[g_cfgVars+CFGVARS.bPageSize]280 eMOVZX dx, [g_cfgVars+CFGVARS.bPageSize] 281 281 mul dx ; AX=Bytes written 282 282 … … 311 311 mov dx, [si+FLASHVARS.wPagesBeforeDraw] 312 312 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] 315 315 ALIGN JUMP_ALIGN 316 316 .PageLoop: … … 405 405 cmp ax, ERR_FLASH_POLL_TIMEOUT 406 406 je SHORT FlashMenu_PollingTimeoutErrorDuringFlashing 407 call Flash_WasDataWriteSuccessful l407 call Flash_WasDataWriteSuccessful 408 408 jne SHORT FlashMenu_DataVerifyErrorAfterFlashing 409 409 ; 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 6 2 ; Description : Menu for configuring IDEVARS. 7 3 … … 119 115 120 116 ;-------------------------------------------------------------------- 121 ; Stores IDEVARS specific pointers to IDE Controller Menu 117 ; Stores IDEVARS specific pointers to IDE Controller Menu 122 118 ; MENUPAGEITEM structs. 123 119 ; … … 133 129 ALIGN JUMP_ALIGN 134 130 IdeControllerMenu_SetIdevarsOffset: 135 eMOVZX cx, BYTE[g_MenuPageIdeVars+MENUPAGE.bItemCnt]131 eMOVZX cx, [g_MenuPageIdeVars+MENUPAGE.bItemCnt] 136 132 dec cx 137 133 mov bx, g_MenuPageItemIdeMaster+MENUPAGEITEM.pValue
Note:
See TracChangeset
for help on using the changeset viewer.