Changeset 369 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Mar 29, 2012, 9:29:28 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.