Changeset 546 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Timestamp:
- Apr 19, 2013, 11:45:35 AM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Files:
-
- 3 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 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r536 r546 278 278 db "XTIDE rev 1",LF 279 279 db "XTIDE rev 2 or modded rev 1",LF 280 db "XT-CF v2/v3/Lite in PIO mode",LF281 db "XT-CF v2 in DMA mode",LF282 db "XT-CF v2 in memory mode",LF280 db "XT-CF (PIO)",LF 281 db "XT-CF (PIO w/BIU offload)",LF 282 db "XT-CF DMA (v3 only)",LF 283 283 db "JR-IDE/ISA",LF 284 284 db "SVC ADP50L",LF … … 290 290 g_szValueCfgDeviceRev1: db "XTIDE r1",NULL 291 291 g_szValueCfgDeviceRev2: db "XTIDE r2",NULL 292 g_szValueCfgDevice PioXTCF: db "XTCF PIO",NULL293 g_szValueCfgDevice DmaXTCF: db "XTCF DMA",NULL294 g_szValueCfgDevice MemXTCF: db "XTCF MEM",NULL292 g_szValueCfgDeviceXTCFPio8: db "XTCF PIO",NULL 293 g_szValueCfgDeviceXTCFPio8WithBIUOffload: db "XTCF BIU",NULL 294 g_szValueCfgDeviceXTCFDMA: db "XTCF DMA",NULL 295 295 g_szValueCfgDeviceJrIdeIsa: db "JR-ISA",NULL 296 296 g_szValueCfgDeviceADP50L: db "ADP50L",NULL … … 373 373 g_szNfoDrvHeads: db "Number of user specified P-CHS heads.",NULL 374 374 g_szNfoDrvSect: db "Number of user specified P-CHS sectors per track.",NULL 375 g_szNfoDrvUserLBA: db "Limit drive capacity to X million sectors.",NULL376 g_szNfoDrvLbaSectors: db "Millions of sectors (1024*1024). 1M sectors = 512 MiB. ",NULL375 g_szNfoDrvUserLBA: db "Limit drive capacity to fix compatibility problems with Windows 9x.",NULL 376 g_szNfoDrvLbaSectors: db "Millions of sectors (1024*1024). 1M sectors = 512 MiB. Recommended limits are 64 for Windows 95, 128 for Windows 98 and 256 for Windows ME (and 98 with updated fdisk).",NULL 377 377 378 378 g_szHelpDrvBlockMode: db "Block Mode will speed up transfers since multiple sectors can be transferred before waiting next data request."
Note:
See TracChangeset
for help on using the changeset viewer.