Changeset 614 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Jun 10, 2021, 4:56:34 PM (3 years ago)
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r607 r614 475 475 ;-------------------------------------------------------------------- 476 476 .EnableOrDisableSerial: 477 mov bx, g_MenuitemIdeControllerSerialBaud478 call DisableMenuitemFromCSBX479 480 mov bx, g_MenuitemIdeControllerSerialCOM481 call DisableMenuitemFromCSBX482 483 mov bx, g_MenuitemIdeControllerSerialPort484 call DisableMenuitemFromCSBX485 486 477 mov bx, [g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 487 478 call Buffers_GetRomvarsValueToAXfromOffsetInBX 488 479 cmp al, DEVICE_SERIAL_PORT 489 jne SHORT .DisableAllSerial 490 491 mov bx, g_MenuitemIdeControllerSerialCOM 492 call EnableMenuitemFromCSBX 493 494 mov bx, g_MenuitemIdeControllerSerialBaud 495 call EnableMenuitemFromCSBX 496 480 mov ax, DisableMenuitemFromCSBX 481 jne SHORT .DisableSerialControllerMenuitems 482 mov ax, EnableMenuitemFromCSBX 483 call .EnableSerialControllerMenuitems 497 484 mov bx, [g_MenuitemIdeControllerSerialCOM+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 498 485 call Buffers_GetRomvarsValueToAXfromOffsetInBX 486 cmp al, 'x' 487 mov ax, DisableMenuitemFromCSBX 488 jne SHORT .DisableCustomPortMenuitem 489 ret 490 .DisableSerialControllerMenuitems: 491 .EnableSerialControllerMenuitems: 492 mov bx, g_MenuitemIdeControllerSerialCOM 493 call ax 494 mov bx, g_MenuitemIdeControllerSerialBaud 495 call ax 496 .DisableCustomPortMenuitem: 499 497 mov bx, g_MenuitemIdeControllerSerialPort 500 cmp al, 'x' 501 je SHORT .EnableMenuitemFromCSBX 502 jmp SHORT .DisableMenuitemFromCSBX 503 .DisableAllSerial: 504 ret 498 jmp ax 505 499 506 500 … … 516 510 ALIGN JUMP_ALIGN 517 511 MasterDrive: 512 mov bx, g_MenuitemMasterSlaveDisableDetection 513 call DisableMenuitemFromCSBX 518 514 mov bx, [cs:g_MenuitemIdeControllerMasterDrive+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 519 515 jmp SHORT DisplayMasterSlaveMenu … … 521 517 ALIGN JUMP_ALIGN 522 518 SlaveDrive: 519 mov bx, g_MenuitemMasterSlaveDisableDetection 520 call EnableMenuitemFromCSBX 523 521 mov bx, [cs:g_MenuitemIdeControllerSlaveDrive+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 524 522 ; Fall to DisplayMasterSlaveMenu 525 523 526 ALIGN JUMP_ALIGN527 524 DisplayMasterSlaveMenu: 528 ;529 ; "Block Mode Transfers" and "Internal Write Cache" are not supported on serial drives, disable/enable the options as appropriate530 ;531 push bx532 mov bx, [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]533 call Buffers_GetRomvarsValueToAXfromOffsetInBX534 mov bx, g_MenuitemMasterSlaveBlockModeTransfers535 536 cmp al, DEVICE_SERIAL_PORT537 je .isSerial538 539 call EnableMenuitemFromCSBX540 mov bx, g_MenuitemMasterSlaveWriteCache541 call EnableMenuitemFromCSBX542 jmp .isDone543 544 .isSerial:545 call DisableMenuitemFromCSBX546 mov bx, g_MenuitemMasterSlaveWriteCache547 call DisableMenuitemFromCSBX548 549 .isDone:550 pop bx551 552 525 call MasterSlaveMenu_InitializeToDrvparamsOffsetInBX 553 526 jmp MasterSlaveMenu_EnterMenuOrModifyItemVisibility … … 657 630 mov ax, DEVICE_XTIDE_DEFAULT_PORT ; Defaults for 8-bit XTIDE and XT-CF devices 658 631 mov bx, DEVICE_XTIDE_DEFAULT_PORTCTRL 659 632 660 633 ; XT-CF does not support IRQ so it must be disabled (IRQ setting is not visible for XT-CF) 661 634 ; XTIDE does not use IRQs by default -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm
r592 r614 26 26 at MENUPAGE.fnEnter, dw MasterSlaveMenu_EnterMenuOrModifyItemVisibility 27 27 at MENUPAGE.fnBack, dw IdeControllerMenu_EnterMenuOrModifyItemVisibility 28 at MENUPAGE.wMenuitems, dw 1 028 at MENUPAGE.wMenuitems, dw 11 29 29 iend 30 30 … … 39 39 iend 40 40 41 g_MenuitemMasterSlaveDisableDetection: 42 istruc MENUITEM 43 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 44 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 45 at MENUITEM.szName, dw g_szItemDrvDisableDetection 46 at MENUITEM.szQuickInfo, dw g_szNfoDrvDisableDetection 47 at MENUITEM.szHelp, dw g_szHelpDrvDisableDetection 48 at MENUITEM.bFlags, db FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE 49 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 50 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL 51 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvDisableDetection 52 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag 53 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans 54 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_DRVPARAMS_DO_NOT_DETECT 55 iend 56 41 57 g_MenuitemMasterSlaveBlockModeTransfers: 42 58 istruc MENUITEM … … 46 62 at MENUITEM.szQuickInfo, dw g_szNfoDrvBlockMode 47 63 at MENUITEM.szHelp, dw g_szHelpDrvBlockMode 48 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_FLAGVALUE64 at MENUITEM.bFlags, db FLG_MENUITEM_FLAGVALUE 49 65 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 50 66 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL … … 62 78 at MENUITEM.szQuickInfo, dw g_szNfoDrvXlateMode 63 79 at MENUITEM.szHelp, dw g_szNfoDrvXlateMode 64 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_MASKVALUE80 at MENUITEM.bFlags, db FLG_MENUITEM_MASKVALUE 65 81 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 66 82 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL 67 83 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvXlateMode 68 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoi seXlateMode84 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceXlateMode 69 85 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForXlateMode 70 86 at MENUITEM.itemValue + ITEM_VALUE.rgszChoiceToStringLookup, dw g_rgszChoiceToStringLookupForXlateMode … … 80 96 at MENUITEM.szQuickInfo, dw g_szNfoDrvWriteCache 81 97 at MENUITEM.szHelp, dw g_szHelpDrvWriteCache 82 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_MASKVALUE98 at MENUITEM.bFlags, db FLG_MENUITEM_MASKVALUE 83 99 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 84 100 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL 85 101 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgDrvWriteCache 86 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoi seWrCache102 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceWrCache 87 103 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForWriteCache 88 104 at MENUITEM.itemValue + ITEM_VALUE.rgszChoiceToStringLookup, dw g_rgszChoiceToStringLookupForWriteCache … … 98 114 at MENUITEM.szQuickInfo, dw g_szNfoDrvUserCHS 99 115 at MENUITEM.szHelp, dw g_szHelpDrvUserCHS 100 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE116 at MENUITEM.bFlags, db FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE 101 117 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 102 118 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL … … 163 179 at MENUITEM.szQuickInfo, dw g_szNfoDrvUserLBA 164 180 at MENUITEM.szHelp, dw g_szHelpDrvUserLBA 165 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE181 at MENUITEM.bFlags, db FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE 166 182 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 167 183 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL … … 239 255 %endif 240 256 %endif 257 mov [g_MenuitemMasterSlaveDisableDetection+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 241 258 mov [g_MenuitemMasterSlaveBlockModeTransfers+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 242 259 mov [g_MenuitemMasterSlaveChsTranslateMode+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax … … 274 291 push cs 275 292 pop ds 293 mov bx, [g_MenuitemMasterSlaveDisableDetection+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 294 call Buffers_GetRomvarsValueToAXfromOffsetInBX 295 mov si, g_MenupageForMasterSlaveMenu 296 ePUSH_T bx, Menupage_ChangeToNewMenupageInDSSI 297 test al, FLG_DRVPARAMS_DO_NOT_DETECT 298 jnz SHORT .DisableAllItemsOnThisMenuExceptDisableDetection 299 call .EnableOrDisableItemsDependingOnControllerBeingSerialOrNot 276 300 call .EnableOrDisableUserCHSandLBA 277 301 call .EnableOrDisableCHandS 278 call .EnableOrDisableUserLbaValue 279 mov si, g_MenupageForMasterSlaveMenu 280 jmp Menupage_ChangeToNewMenupageInDSSI 302 jmp .EnableOrDisableUserLbaValue 303 304 305 ;-------------------------------------------------------------------- 306 ; .EnableOrDisableItemsDependingOnControllerBeingSerialOrNot 307 ; Parameters: 308 ; SS:BP: Menu handle 309 ; Returns: 310 ; Nothing 311 ; Corrupts registers: 312 ; AX, BX 313 ;-------------------------------------------------------------------- 314 ALIGN JUMP_ALIGN 315 .EnableOrDisableItemsDependingOnControllerBeingSerialOrNot: 316 mov bx, [g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 317 call Buffers_GetRomvarsValueToAXfromOffsetInBX 318 mov bx, g_MenuitemMasterSlaveChsTranslateMode 319 call EnableMenuitemFromCSBX 320 cmp al, DEVICE_SERIAL_PORT 321 je SHORT .DisableAllItemsNotApplicableToSerialDrives 322 mov bx, g_MenuitemMasterSlaveBlockModeTransfers 323 call EnableMenuitemFromCSBX 324 mov bx, g_MenuitemMasterSlaveWriteCache 325 jmp EnableMenuitemFromCSBX 326 327 328 ;-------------------------------------------------------------------- 329 ; .DisableAllItemsOnThisMenuExceptDisableDetection 330 ; .DisableAllItemsNotApplicableToSerialDrives 331 ; Parameters: 332 ; SS:BP: Menu handle 333 ; Returns: 334 ; Nothing 335 ; Corrupts registers: 336 ; AX, BX 337 ;-------------------------------------------------------------------- 338 ALIGN JUMP_ALIGN 339 .DisableAllItemsOnThisMenuExceptDisableDetection: 340 mov bx, g_MenuitemMasterSlaveChsTranslateMode 341 call DisableMenuitemFromCSBX 342 mov bx, g_MenuitemMasterSlaveUserCHS 343 call DisableMenuitemFromCSBX 344 call .DisableCHandS 345 mov bx, g_MenuitemMasterSlaveUserLBA 346 call DisableMenuitemFromCSBX 347 mov bx, g_MenuitemMasterSlaveUserLbaValue 348 call DisableMenuitemFromCSBX 349 .DisableAllItemsNotApplicableToSerialDrives: 350 mov bx, g_MenuitemMasterSlaveBlockModeTransfers 351 call DisableMenuitemFromCSBX 352 mov bx, g_MenuitemMasterSlaveWriteCache 353 jmp SHORT .DisableMenuitemFromCSBX 281 354 282 355 … … 338 411 jnz SHORT .DisableCHandS 339 412 413 mov ax, EnableMenuitemFromCSBX 414 jmp SHORT .EnableCHandS 415 416 .DisableCHandS: 417 mov ax, DisableMenuitemFromCSBX 418 .EnableCHandS: 340 419 mov bx, g_MenuitemMasterSlaveCylinders 341 call EnableMenuitemFromCSBX420 call ax 342 421 mov bx, g_MenuitemMasterSlaveHeads 343 call EnableMenuitemFromCSBX422 call ax 344 423 mov bx, g_MenuitemMasterSlaveSectors 345 jmp SHORT .EnableMenuitemFromCSBX 346 347 ALIGN JUMP_ALIGN 348 .DisableCHandS: 349 mov bx, g_MenuitemMasterSlaveCylinders 350 call DisableMenuitemFromCSBX 351 mov bx, g_MenuitemMasterSlaveHeads 352 call DisableMenuitemFromCSBX 353 mov bx, g_MenuitemMasterSlaveSectors 354 jmp SHORT .DisableMenuitemFromCSBX 424 jmp ax 355 425 356 426
Note:
See TracChangeset
for help on using the changeset viewer.