Changeset 546 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Apr 19, 2013, 11:45:35 AM (12 years ago)
- google:author:
- aitotat@gmail.com
- 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
r536 r546 26 26 at MENUPAGE.fnEnter, dw IdeControllerMenu_EnterMenuOrModifyItemVisibility 27 27 at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 28 at MENUPAGE.wMenuitems, dw 1 228 at MENUPAGE.wMenuitems, dw 11 29 29 iend 30 30 … … 187 187 iend 188 188 189 g_MenuitemIdeControllerXTCFwindow:190 istruc MENUITEM191 at MENUITEM.fnActivate, dw Menuitem_ActivateHexInputForMenuitemInDSSI192 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteHexValueStringToBufferInESDIfromItemInDSSI193 at MENUITEM.szName, dw g_szItemIdeXTCFwindow194 at MENUITEM.szQuickInfo, dw g_szNfoIdeXTCFwindow195 at MENUITEM.szHelp, dw g_szNfoIdeXTCFwindow196 at MENUITEM.bFlags, db FLG_MENUITEM_BYTEVALUE197 at MENUITEM.bType, db TYPE_MENUITEM_HEX198 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL199 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgIdeXTCFwindow200 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0A000h201 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 0E800h202 at MENUITEM.itemValue + ITEM_VALUE.fnValueReader, dw ReaderForXTCFwindow203 at MENUITEM.itemValue + ITEM_VALUE.fnValueWriter, dw WriterForXTCFwindow204 iend205 206 189 g_rgwChoiceToValueLookupForDevice: 207 190 dw DEVICE_16BIT_ATA … … 211 194 dw DEVICE_8BIT_XTIDE_REV2 212 195 dw DEVICE_8BIT_XTCF_PIO8 196 dw DEVICE_8BIT_XTCF_PIO8_WITH_BIU_OFFLOAD 213 197 dw DEVICE_8BIT_XTCF_DMA 214 dw DEVICE_8BIT_XTCF_MEMMAP215 198 dw DEVICE_8BIT_JRIDE_ISA 216 199 dw DEVICE_8BIT_ADP50L … … 222 205 dw g_szValueCfgDeviceRev1 223 206 dw g_szValueCfgDeviceRev2 224 dw g_szValueCfgDevice PioXTCF225 dw g_szValueCfgDevice DmaXTCF226 dw g_szValueCfgDevice MemXTCF207 dw g_szValueCfgDeviceXTCFPio8 208 dw g_szValueCfgDeviceXTCFPio8WithBIUOffload 209 dw g_szValueCfgDeviceXTCFDMA 227 210 dw g_szValueCfgDeviceJrIdeIsa 228 211 dw g_szValueCfgDeviceADP50L … … 333 316 mov [cs:g_MenuitemIdeControllerControlBlockAddress+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 334 317 335 lea ax, [bx+IDEVARS.bXTCFcontrolRegister]336 mov [cs:g_MenuitemIdeControllerXTCFwindow+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax337 338 318 lea ax, [bx+IDEVARS.bSerialCOMPortChar] 339 319 mov [cs:g_MenuitemIdeControllerSerialCOM+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax … … 362 342 call .DisableIRQchannelSelection 363 343 call .EnableOrDisableEnableInterrupt 364 call .EnableOrDisableXTCFwindow365 344 call .EnableOrDisableSerial 366 345 mov si, g_MenupageForIdeControllerMenu … … 430 409 .DisableIRQchannelSelection: 431 410 mov bx, g_MenuitemIdeControllerIdeIRQ 432 jmp SHORT .DisableMenuitemFromCSBX433 434 435 ;--------------------------------------------------------------------436 ; .EnableOrDisableXTCFwindow437 ; Parameters:438 ; SS:BP: Menu handle439 ; Returns:440 ; Nothing441 ; Corrupts registers:442 ; AX, BX443 ;--------------------------------------------------------------------444 ALIGN JUMP_ALIGN445 .EnableOrDisableXTCFwindow:446 mov bx, [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]447 call Buffers_GetRomvarsValueToAXfromOffsetInBX448 mov bx, g_MenuitemIdeControllerXTCFwindow449 cmp al, DEVICE_8BIT_XTCF_MEMMAP450 je SHORT .EnableMenuitemFromCSBX451 411 ; Fall to .DisableMenuitemFromCSBX 452 412 … … 614 574 jbe SHORT .writeNonSerial 615 575 616 mov ax, DEVICE_XTIDE_DEFAULT_PORT ; Defaults for 8-bit XTIDE devices576 mov ax, DEVICE_XTIDE_DEFAULT_PORT ; Defaults for 8-bit XTIDE and XT-CF devices 617 577 mov bx, DEVICE_XTIDE_DEFAULT_PORTCTRL 618 578 … … 645 605 646 606 .done: 647 ; See if we are changing to XT-CF. If we are, store648 ; byte for Control Register.649 607 pop ax 650 608 pop di ; IDEVARS.bDevice 651 sub di, BYTE IDEVARS.bDevice - IDEVARS.bXTCFcontrolRegister ; IDEVARS.bXTCFcontrolRegister652 cmp al, DEVICE_8BIT_XTCF_PIO8 >> 1653 je SHORT .ChangingToPioModeXTCF654 cmp al, DEVICE_8BIT_XTCF_DMA >> 1655 je SHORT .ChangingToDmaModeXTCF656 cmp al, DEVICE_8BIT_XTCF_MEMMAP >> 1657 jne SHORT .NoNeedToChangeXTCFsettings658 659 ; XT-CF Memory Mapped Mode660 mov WORD [es:di], DEFAULT_XTCF_SECTOR_WINDOW_SEGMENT >> 8 ; Store word to clear Control Block Port high byte661 jmp SHORT .NoNeedToChangeXTCFsettings662 .ChangingToPioModeXTCF:663 mov BYTE [es:di], XTCF_8BIT_PIO_MODE664 jmp SHORT .NoNeedToChangeXTCFsettings665 .ChangingToDmaModeXTCF:666 mov BYTE [es:di], XTCF_DMA_MODE667 ; Fall to .NoNeedToChangeXTCFsettings668 669 .NoNeedToChangeXTCFsettings:670 609 pop di 671 610 pop bx -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm
r526 r546 279 279 call Buffers_SaveChangesIfFileLoaded 280 280 call EEPROM_LoadOldSettingsFromRomToRamBuffer 281 and WORD [g_cfgVars+CFGVARS.wFlags], ~FLG_CFGVARS_UNSAVED281 call Buffers_SetUnsavedChanges 282 282 mov dx, g_szDlgMainLoadStngs 283 283 jmp Dialogs_DisplayNotificationFromCSDX
Note:
See TracChangeset
for help on using the changeset viewer.