Changeset 68 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Dec 9, 2010, 6:36:00 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r65 r68 185 185 ALIGN JUMP_ALIGN 186 186 StartFlashing: 187 call .MakeSureThatImageFitsInEeprom 188 jc SHORT .InvalidFlashingParameters 187 189 push es 188 190 push ds … … 200 202 pop ds 201 203 pop es 204 .InvalidFlashingParameters: 205 ret 206 207 ;-------------------------------------------------------------------- 208 ; .MakeSureThatImageFitsInEeprom 209 ; Parameters: 210 ; SS:BP: Ptr to MENU 211 ; Returns: 212 ; Nothing 213 ; Corrupts registers: 214 ; AX, BX, DX 215 ;-------------------------------------------------------------------- 216 ALIGN JUMP_ALIGN 217 .MakeSureThatImageFitsInEeprom: 218 call .GetSelectedEepromSizeInWordsToAX 219 cmp ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords] 220 jae SHORT .ImageFitsInSelectedEeprom 221 mov dx, g_szErrEepromTooSmall 222 call Dialogs_DisplayErrorFromCSDX 223 stc 224 ret 225 ALIGN JUMP_ALIGN 226 .ImageFitsInSelectedEeprom: 227 clc 202 228 ret 203 229 … … 270 296 ALIGN JUMP_ALIGN 271 297 .GetNumberOfPagesToFlashToAX: 272 eMOVZX bx, BYTE [si+FLASHVARS.bEepromType] 273 mov ax, [cs:bx+g_rgwEepromTypeToSizeInWords] 298 call .GetSelectedEepromSizeInWordsToAX 274 299 xor dx, dx 275 300 shl ax, 1 ; Size in bytes to... … … 282 307 ret 283 308 309 ;-------------------------------------------------------------------- 310 ; .GetSelectedEepromSizeInWordsToAX 311 ; Parameters: 312 ; Nothing 313 ; Returns: 314 ; AX: Selected EEPROM size in WORDs 315 ; Corrupts registers: 316 ; BX 317 ;-------------------------------------------------------------------- 318 ALIGN JUMP_ALIGN 319 .GetSelectedEepromSizeInWordsToAX: 320 eMOVZX bx, BYTE [cs:g_cfgVars+CFGVARS.bEepromType] 321 mov ax, [cs:bx+g_rgwEepromTypeToSizeInWords] 322 ret 284 323 285 324 ;-------------------------------------------------------------------- -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm
r59 r68 2 2 ; Project name : XTIDE Universal BIOS Configurator v2 3 3 ; Created date : 6.10.2010 4 ; Last update : 19.11.20104 ; Last update : 9.12.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Main menu structs and functions. … … 226 226 LoadXtideUniversalBiosFromRom: 227 227 call Buffers_SaveChangesIfFileLoaded 228 call EEPROM_LoadXtideUniversalBiosFromRomToRamBuffer 228 call EEPROM_LoadXtideUniversalBiosFromRomToRamBufferAndReturnSizeInDXCX 229 229 mov ax, FLG_CFGVARS_ROMLOADED 230 call Buffers_NewBiosWithSizeInCXandSourceInAXhasBeenLoadedForConfiguration 231 push cs 232 pop ds 233 mov si, g_szDlgMainLoadROM 234 CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI 235 ret 230 call Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration 231 mov dx, g_szDlgMainLoadROM 232 jmp Dialogs_DisplayNotificationFromCSDX 236 233 237 234 … … 241 238 call EEPROM_LoadOldSettingsFromRomToRamBuffer 242 239 and WORD [g_cfgVars+CFGVARS.wFlags], ~FLG_CFGVARS_UNSAVED 243 push cs 244 pop ds 245 mov si, g_szDlgMainLoadStngs 246 CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI 247 ret 240 mov dx, g_szDlgMainLoadStngs 241 jmp Dialogs_DisplayNotificationFromCSDX
Note:
See TracChangeset
for help on using the changeset viewer.