Changeset 369 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Timestamp:
- Mar 29, 2012, 9:29:28 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r293 r369 107 107 and WORD [g_cfgVars+CFGVARS.wFlags], ~FLG_CFGVARS_UNSAVED 108 108 ret 109 110 ;-------------------------------------------------------------------- 111 ; Buffers_TestLoaded 112 ; Parameters: 113 ; SS:BP: Menu handle 114 ; Returns: 115 ; CF: Set = BIOS Loaded 116 ; Corrupts registers: 117 ; AX 118 ;-------------------------------------------------------------------- 119 ALIGN JUMP_ALIGN 120 Buffers_TestLoaded: 121 test word [cs:g_cfgVars+CFGVARS.wFlags], FLG_CFGVARS_FILELOADED ; Clears CF 122 jz .done 123 stc 124 .done: 125 ret 109 126 110 127 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r293 r369 152 152 call GetConfigurationBufferToESDIforMenuitemInDSSI 153 153 add di, [si+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 154 155 push bx 156 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.fnValueWriter] 157 test bx,bx 158 jz SHORT .NoWriter 159 call bx 160 .NoWriter: 161 pop bx 162 154 163 jmp [cs:bx+.rgfnJumpToStoreValueBasedOnItemType] 155 164 .InvalidItemType: … … 231 240 ALIGN JUMP_ALIGN 232 241 .StoreByteOrWordValueFromAXtoESDIwithItemInDSSI: 233 push bx234 mov bx,[si+MENUITEM.itemValue+ITEM_VALUE.fnValueWriter]235 test bx,bx236 jz SHORT .NoWriter237 238 call bx239 240 .NoWriter:241 pop bx242 242 test BYTE [si+MENUITEM.bFlags], FLG_MENUITEM_MASKVALUE 243 243 jz SHORT .StoreByteOrWord -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm
r360 r369 70 70 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 71 71 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_DRVPARAMS_USERCHS 72 at MENUITEM.itemValue + ITEM_VALUE.fnValueWriter, dw MasterSlaveMenu_WriteCHSFlag 72 73 iend 73 74 … … 85 86 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 86 87 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 16383 88 %define MASTERSLAVE_CYLINDERS_DEFAULT 65 87 89 iend 88 90 … … 100 102 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 101 103 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 16 104 %define MASTERSLAVE_HEADS_DEFAULT 16 102 105 iend 103 106 … … 115 118 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 116 119 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 63 120 %define MASTERSLAVE_SECTORS_DEFAULT 63 117 121 iend 118 122 … … 131 135 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 132 136 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_DRVPARAMS_USERLBA 137 at MENUITEM.itemValue + ITEM_VALUE.fnValueWriter, dw MasterSlaveMenu_WriteLBAFlag 133 138 iend 134 139 … … 148 153 at MENUITEM.itemValue + ITEM_VALUE.fnValueReader, dw ValueReaderForUserLbaValue 149 154 at MENUITEM.itemValue + ITEM_VALUE.fnValueWriter, dw ValueWriterForUserLbaValue 155 %define MASTERSLAVE_USERLBA_DEFAULT 1 150 156 iend 151 157 … … 384 390 pop dx 385 391 ret ; AX will be stored by our menu system 392 393 ; 394 ; No change to CHS flag, but we use this opportunity to change defaults stored in the CHS values if we are 395 ; changing in/out of user CHS settings (since we use these bytes in different ways with the LBA setting). 396 ; 397 ALIGN JUMP_ALIGN 398 MasterSlaveMenu_WriteCHSFlag: 399 test word [es:di], FLG_DRVPARAMS_USERCHS 400 jnz .alreadySet 401 402 push ax 403 push di 404 push si 405 406 mov ax, MASTERSLAVE_CYLINDERS_DEFAULT 407 mov si, g_MenuitemMasterSlaveCylinders 408 call Menuitem_StoreValueFromAXtoMenuitemInDSSI 409 410 mov ax, MASTERSLAVE_HEADS_DEFAULT 411 mov si, g_MenuitemMasterSlaveHeads 412 call Menuitem_StoreValueFromAXtoMenuitemInDSSI 413 414 mov ax, MASTERSLAVE_SECTORS_DEFAULT 415 mov si, g_MenuitemMasterSlaveSectors 416 call Menuitem_StoreValueFromAXtoMenuitemInDSSI 417 418 pop si 419 pop di 420 pop ax 421 422 .alreadySet: 423 ret 424 425 ; 426 ; No change to LBA flag, but we use this opportunity to change defaults stored in the LBA value if we are 427 ; changing in/out of user LBA settings (since we use these bytes in different ways with the CHS setting). 428 ; 429 ALIGN JUMP_ALIGN 430 MasterSlaveMenu_WriteLBAFlag: 431 test word [es:di], FLG_DRVPARAMS_USERLBA 432 jnz .alreadySet 433 434 push ax 435 push di 436 push si 437 438 mov ax, MASTERSLAVE_USERLBA_DEFAULT 439 mov si, g_MenuitemMasterSlaveUserLbaValue 440 call Menuitem_StoreValueFromAXtoMenuitemInDSSI 441 442 pop si 443 pop di 444 pop ax 445 446 .alreadySet: 447 ret -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r362 r369 74 74 g_szNfoMainConfigure: db "Configure XTIDE Universal BIOS settings.",NULL 75 75 g_szNfoMainFlash: db "Flash loaded BIOS image to EEPROM.",NULL 76 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Details...",NULL76 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Press ENTER for more details...",NULL 77 77 g_szNfoMainHomePage: db "Visit http://code.google.com/p/ xtideuniversalbios (home page) and http://vintage-computer.com/ vcforum (support)",NULL 78 78
Note:
See TracChangeset
for help on using the changeset viewer.