Changeset 145 in xtideuniversalbios for trunk/Configurator/Src
- Timestamp:
- Mar 15, 2011, 11:28:17 AM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Configurator/Src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/BiosFile.asm
r2 r145 1 ; File name : EEPROM.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 20.4.20104 ; Last update : 21.4.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for loading and saving BIOS image file. 7 3 … … 154 150 ; Cleared if supported size 155 151 ; Corrupts registers: 156 ; DX152 ; Nothing 157 153 ;-------------------------------------------------------------------- 158 154 ALIGN JUMP_ALIGN 159 155 BiosFile_GetFileSizeToCX: 160 mov cx, [si+DTA.dwFileSize ]161 mov dx, [si+DTA.dwFileSize+2]162 test dx, dx ; More than 65535 bytes?156 mov cx, [si+DTA.dwFileSize+2] ; High word of file size to CX 157 test cx, cx ; File larger than 65535 bytes? (clears CF) 158 mov cx, [si+DTA.dwFileSize] ; Low word of file size to CX 163 159 jnz SHORT .TooLargeFile 164 160 cmp cx, MAX_EEPROM_SIZE ; Too large? 165 161 ja SHORT .TooLargeFile 166 clc167 ret168 .TooLargeFile:169 162 stc 163 .TooLargeFile: ; CF is always cleared when jumping to here 164 cmc ; So we invert it 170 165 ret 171 166 -
trunk/Configurator/Src/MenuPageItem.asm
r2 r145 1 ; File name : MenuPageItem.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 15.4.20104 ; Last update : 1.5.20105 ; Author : Tomi Tilli6 2 ; Description : Functions to access MENUPAGEITEM structs. 7 3 … … 363 359 MainPageItem_ActivateSubmenuForGettingLookupValueWithoutMarkingUnsaved: 364 360 call MainPageItem_ActivateSubmenu 365 cmp cx, BYTE 0366 j lSHORT .Return ; User cancellation361 test cx, cx ; Clears CF 362 js SHORT .Return ; User cancellation 367 363 push si 368 364 mov si, [di+MENUPAGEITEM.pSubMenuPage] ; DS:SI points to value MENUPAGE … … 374 370 pop si 375 371 stc ; Changes so redraw 376 ret377 372 .Return: 378 clc379 373 ret 380 374 -
trunk/Configurator/Src/Menupages/FlashMenu.asm
r2 r145 1 ; File name : FlashMenu.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 29.4.20104 ; Last update : 2.5.20105 ; Author : Tomi Tilli6 2 ; Description : Flash menu. 7 3 … … 143 139 mov [g_cfgVars+CFGVARS.bPageSize], al 144 140 stc 145 ret146 141 .Cancel: 147 clc148 142 ret 149 143 … … 306 300 ; Corrupts registers: 307 301 ; AX, BX, CX, DX 308 ;-------------------------------------------------------------------- 302 ;-------------------------------------------------------------------- 309 303 ALIGN JUMP_ALIGN 310 304 FlashMenu_FlashAllPagesBeforeUpdate:
Note:
See TracChangeset
for help on using the changeset viewer.