Changeset 293 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/BiosFile.asm
r181 r293 27 27 call Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration 28 28 call FileIO_CloseUsingHandleFromBX 29 call DisplayFileLoadedSucces fully29 call DisplayFileLoadedSuccessfully 30 30 jmp SHORT .Return 31 31 … … 43 43 ; DS:SI: Name of file to open 44 44 ; Returns: 45 ; BX: File handle (if succes full)46 ; DX:CX: File size (if succes full)47 ; CF: Clear if successful l45 ; BX: File handle (if successful) 46 ; DX:CX: File size (if successful) 47 ; CF: Clear if successful 48 48 ; Set if error 49 49 ; Corrupts registers: … … 80 80 ; DS:SI: File name 81 81 ; Returns: 82 ; CF: Clear if successful l82 ; CF: Clear if successful 83 83 ; Set if error 84 84 ; Corrupts registers: … … 167 167 call FileIO_CloseUsingHandleFromBX 168 168 call Buffers_ClearUnsavedChanges 169 call DisplayFileSavedSucces fully169 call DisplayFileSavedSuccessfully 170 170 jmp SHORT .Return 171 171 … … 181 181 182 182 ;-------------------------------------------------------------------- 183 ; DisplayFileLoadedSucces fully184 ; DisplayFileSavedSucces fully183 ; DisplayFileLoadedSuccessfully 184 ; DisplayFileSavedSuccessfully 185 185 ; DisplayFailedToLoadFile 186 186 ; DisplayFailedToSaveFile … … 194 194 ;-------------------------------------------------------------------- 195 195 ALIGN JUMP_ALIGN 196 DisplayFileLoadedSucces fully:196 DisplayFileLoadedSuccessfully: 197 197 mov dx, g_szDlgMainLoadFile 198 198 jmp Dialogs_DisplayNotificationFromCSDX 199 199 200 200 ALIGN JUMP_ALIGN 201 DisplayFileSavedSucces fully:201 DisplayFileSavedSuccessfully: 202 202 mov dx, g_szDlgMainSaveFile 203 203 jmp Dialogs_DisplayNotificationFromCSDX -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r204 r293 145 145 push es 146 146 147 eMOVZX di, BYTE[cs:g_cfgVars+CFGVARS.bEepromType]147 eMOVZX di, [cs:g_cfgVars+CFGVARS.bEepromType] 148 148 mov cx, [cs:di+g_rgwEepromTypeToSizeInWords] 149 149 sub cx, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] ; CX = WORDs to append -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r181 r293 91 91 .GetXtideUniversalBiosSizeFromEStoDXCX: 92 92 xor dx, dx 93 eMOVZX cx, BYTE[es:ROMVARS.bRomSize]93 eMOVZX cx, [es:ROMVARS.bRomSize] 94 94 eSHL_IM cx, 9 ; *= 512 for byte count 95 95 ret … … 199 199 xor si, si 200 200 call Buffers_GetFlashComparisonBufferToESDI 201 eMOVZX bx, BYTE[cs:g_cfgVars+CFGVARS.bEepromType]201 eMOVZX bx, [cs:g_cfgVars+CFGVARS.bEepromType] 202 202 mov cx, [cs:bx+g_rgwEepromTypeToSizeInWords] 203 203 cld -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Flash.asm
r181 r293 86 86 ALIGN JUMP_ALIGN 87 87 .GetSdpCommandFunctionToDXwithFlashvarsInSSBP: 88 eMOVZX bx, BYTE[bp+FLASHVARS.bEepromSdpCommand]88 eMOVZX bx, [bp+FLASHVARS.bEepromSdpCommand] 89 89 mov si, [cs:bx+.rgpSdpCommandToEepromTypeLookupTable] 90 90 mov bl, [bp+FLASHVARS.bEepromType] -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r286 r293 146 146 ALIGN JUMP_ALIGN 147 147 Menuitem_StoreValueFromAXtoMenuitemInDSSI: 148 eMOVZX bx, BYTE[si+MENUITEM.bType]148 eMOVZX bx, [si+MENUITEM.bType] 149 149 cmp bl, TYPE_MENUITEM_HEX 150 150 ja SHORT .InvalidItemType … … 207 207 ; 208 208 ; if the lookup pointer is NULL, no translation is needed 209 ; 209 ; 210 210 mov bx, [si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 211 211 test bx, bx 212 212 jz .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI 213 213 214 214 shl ax, 1 ; Shift for WORD lookup 215 215 add bx, ax … … 234 234 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.fnValueWriter] 235 235 test bx,bx 236 jz SHORT .NoWriter 237 238 call bx 236 jz SHORT .NoWriter 237 238 call bx 239 239 240 240 .NoWriter: … … 313 313 xor ah, ah ; conversion needs to happen before call to the reader, 314 314 ; in case the reader unpacks the byte to a word 315 315 316 316 .NoConvertWordToByteValue: 317 317 mov bx, [si+MENUITEM.itemValue+ITEM_VALUE.fnValueReader] … … 321 321 call bx 322 322 323 .NoReader: 323 .NoReader: 324 324 pop bx 325 325 pop di -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
r286 r293 36 36 ALIGN JUMP_ALIGN 37 37 MenuitemPrint_NameWithPossibleValueFromDSSI: 38 eMOVZX bx, BYTE[si+MENUITEM.bType]38 eMOVZX bx, [si+MENUITEM.bType] 39 39 cmp bl, TYPE_MENUITEM_ACTION 40 40 ja SHORT .PrintNameAndValueFromDSSI … … 147 147 ; Corrupts registers: 148 148 ; AX, BX, CX 149 ;-------------------------------------------------------------------- 149 ;-------------------------------------------------------------------- 150 150 ALIGN JUMP_ALIGN 151 151 MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI: … … 170 170 ; Corrupts registers: 171 171 ; AX, BX, CX 172 ;-------------------------------------------------------------------- 172 ;-------------------------------------------------------------------- 173 173 ALIGN JUMP_ALIGN 174 174 PrintLookupValueFromAXtoBufferInESDI: 175 175 push si 176 176 test byte [si+MENUITEM.bFlags], FLG_MENUITEM_CHOICESTRINGS 177 jnz .lookupChoice 178 177 jnz .lookupChoice 178 179 179 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgszValueToStringLookup] 180 180 xchg bx, ax 181 .found: 181 .found: 182 182 mov si, [bx] 183 183 .errorReturn: … … 187 187 188 188 ; 189 ; With FLG_MENUITEM_CHOICESTRINGS, the array at .rgszChoiceToStringLookup is based on the 189 ; With FLG_MENUITEM_CHOICESTRINGS, the array at .rgszChoiceToStringLookup is based on the 190 190 ; Choice number (offset within .rgwChoiceToValueLookup) instead of the value stored. 191 191 ; Here, we scan the .rgwChoiceToValueLookup array until we find the value there, and then 192 ; use the same offset in .rgszChoiceToStringLookup. If we don't find the value, we 193 ; return an "Error!" string instead. 192 ; use the same offset in .rgszChoiceToStringLookup. If we don't find the value, we 193 ; return an "Error!" string instead. 194 194 ; 195 195 ; Note that the pointer array at .rgszChoiceToStringLookup must be NULL terminated. Since the … … 197 197 ; 198 198 .lookupChoice: 199 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup] 199 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.rgszChoiceToStringLookup] 200 200 mov si,[si+MENUITEM.itemValue+ITEM_VALUE.rgwChoiceToValueLookup] 201 201 202 202 .wordLoop: 203 203 cmp ax,[si] … … 222 222 ; Corrupts registers: 223 223 ; AX, BX, CX 224 ;-------------------------------------------------------------------- 224 ;-------------------------------------------------------------------- 225 225 ALIGN JUMP_ALIGN 226 226 MenuitemPrint_WriteUnsignedValueStringToBufferInESDIfromItemInDSSI: … … 244 244 ; Corrupts registers: 245 245 ; AX, BX, CX 246 ;-------------------------------------------------------------------- 246 ;-------------------------------------------------------------------- 247 247 ALIGN JUMP_ALIGN 248 248 MenuitemPrint_WriteHexValueStringToBufferInESDIfromItemInDSSI: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r246 r293 273 273 mov [si+FLASHVARS.bEepromSdpCommand], al 274 274 275 eMOVZX bx, BYTE[cs:g_cfgVars+CFGVARS.bEepromPage]275 eMOVZX bx, [cs:g_cfgVars+CFGVARS.bEepromPage] 276 276 mov ax, [cs:bx+g_rgwEepromPageToSizeInBytes] 277 277 mov [si+FLASHVARS.wEepromPageSize], ax … … 314 314 ALIGN JUMP_ALIGN 315 315 .GetSelectedEepromSizeInWordsToAX: 316 eMOVZX bx, BYTE[cs:g_cfgVars+CFGVARS.bEepromType]316 eMOVZX bx, [cs:g_cfgVars+CFGVARS.bEepromType] 317 317 mov ax, [cs:bx+g_rgwEepromTypeToSizeInWords] 318 318 ret … … 330 330 ALIGN JUMP_ALIGN 331 331 .DisplayFlashingResultsFromFlashvarsInDSBX: 332 eMOVZX bx, BYTE[bx+FLASHVARS.flashResult]332 eMOVZX bx, [bx+FLASHVARS.flashResult] 333 333 jmp [cs:bx+.rgfnFlashResultMessage] 334 334 … … 370 370 ALIGN JUMP_ALIGN 371 371 .DisplayRebootMessageAndReboot: 372 mov dx, g_szPCFlashSuccessful l372 mov dx, g_szPCFlashSuccessful 373 373 call Dialogs_DisplayNotificationFromCSDX 374 374 xor ax, ax ; Cold boot flag -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm
r286 r293 238 238 call .EnableMenuitemFromCSBX 239 239 mov bx, g_MenuitemMasterSlaveUserLBA 240 jmp .EnableMenuitemFromCSBX 240 jmp .EnableMenuitemFromCSBX 241 241 242 242 ALIGN JUMP_ALIGN … … 245 245 call .EnableMenuitemFromCSBX 246 246 mov bx, g_MenuitemMasterSlaveUserLBA 247 jmp .DisableMenuitemFromCSBX 247 jmp .DisableMenuitemFromCSBX 248 248 249 249 ALIGN JUMP_ALIGN … … 252 252 call .EnableMenuitemFromCSBX 253 253 mov bx, g_MenuitemMasterSlaveUserCHS 254 jmp .DisableMenuitemFromCSBX 254 jmp .DisableMenuitemFromCSBX 255 255 256 256 … … 308 308 test ax, FLG_DRVPARAMS_USERLBA 309 309 jz SHORT .DisableMenuitemFromCSBX 310 jmp SHORT.EnableMenuitemFromCSBX310 ; Fall to .EnableMenuitemFromCSBX 311 311 312 312 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r290 r293 22 22 23 23 g_szNo: db "No",NULL 24 g_szYes: db "Yes",NULL25 24 g_szMultichoiceBooleanFlag: 26 25 db "No",LF 27 26 g_szYes: db "Yes",NULL 28 27 29 28 ; Exit messages … … 44 43 g_szErrEepromVerify: db "EEPROM did not return the same byte that was written.",LF 45 44 db "EEPROM was not flashed properly!",NULL 46 g_szPCFlashSuccessful l: db "EEPROM was written successfully.",LF45 g_szPCFlashSuccessful: db "EEPROM was written successfully.",LF 47 46 db "Press any key to reboot.",NULL 48 47 g_szForeignFlash: db "EEPROM was written successfully.",NULL … … 374 373 db "None",LF 375 374 db "Enable",LF 376 375 g_szValueFlashDisable: db "Disable",NULL 377 376 g_szValueFlashNone: db "None",NULL 378 377 g_szValueFlashEnable: db "Enable",NULL 379 g_szValueFlashDisable: db "Disable",NULL380 378 381 379 g_szMultichoicePageSize: … … 386 384 db "16 bytes",LF 387 385 db "32 bytes",LF 388 386 g_szValueFlash64bytes: db "64 bytes",NULL 389 387 g_szValueFlash1byte: db "1 byte",NULL 390 388 g_szValueFlash2bytes: db "2 bytes",NULL … … 393 391 g_szValueFlash16bytes: db "16 bytes",NULL 394 392 g_szValueFlash32bytes: db "32 bytes",NULL 395 g_szValueFlash64bytes: db "64 bytes",NULL396 393 397 394 g_szSelectionTimeout: db DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2u s",NULL
Note:
See TracChangeset
for help on using the changeset viewer.