Changeset 109 in xtideuniversalbios
- Timestamp:
- Feb 22, 2011, 4:39:45 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Inc/Variables.inc
r68 r109 1 ; File name : Variables.inc2 1 ; Project name : XTIDE Univeral BIOS Configurator v2 3 ; Created date : 5.10.20104 ; Last update : 6.12.20105 ; Author : Tomi Tilli6 2 ; Description : Global variables for configuration program. 7 3 %ifndef VARIABLES_INC … … 9 5 10 6 ; Equates and defines 11 MAX_ALLOWED_IDE_CONTROLLERS EQU 5; Maximum number of IDE controllers7 MAX_ALLOWED_IDE_CONTROLLERS EQU 4 ; Maximum number of IDE controllers 12 8 EEPROM_POLLING_TIMEOUT_TICKS EQU 3 ; 1 tick = 54.9 ms 13 9 XTIDE_SIGNATURE_LENGTH EQU 8 ; XTIDE Universal BIOS signature string length -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r68 r109 1 ; File name : Buffers.asm2 1 ; Project name : XTIDE Universal BIOS Configurator v2 3 ; Created date : 6.10.20104 ; Last update : 6.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for accessing file and flash buffers. 7 3 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Dialogs.asm
r108 r109 173 173 .InitializeProgressDialogIoInDSSIwithFlashvarsInDSBX: 174 174 call InitializeDialogInputFromDSSI 175 mov WORD [si+DIALOG_INPUT.fszTitle], g_sz EEPROM175 mov WORD [si+DIALOG_INPUT.fszTitle], g_szFlashTitle 176 176 177 177 xor ax, ax -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm
r68 r109 1 ; File name : main.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator v2 3 ; Created date : 5.10.20104 ; Last update : 7.12.20105 ; Author : Tomi Tilli6 2 ; Description : Program start and exit. 7 3 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuEvents.asm
r63 r109 1 ; File name : MenuEvents.asm2 1 ; Project name : XTIDE Universal BIOS Configurator v2 3 ; Created date : 5.10.20104 ; Last update : 30.11.20105 ; Author : Tomi Tilli6 2 ; Description : Menu event handling. 7 3 … … 79 75 CALL_DISPLAY_LIBRARY GetColumnsToALandRowsToAH 80 76 mov [si+MENUINIT.bHeight], ah 77 call MainMenu_EnterMenuOrModifyItemVisibility 81 78 stc 82 79 ret -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupage.asm
r57 r109 1 ; File name : Menupage.asm2 1 ; Project name : XTIDE Universal BIOS Configurator v2 3 ; Created date : 5.10.20104 ; Last update : 1.11.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for accessing MENUPAGE structs. 7 3 … … 32 28 33 29 ;-------------------------------------------------------------------- 34 ; Menupage_SetActiveMenupageFromDSDI30 ; SetActiveMenupageFromDSDI 35 31 ; Parameters: 36 32 ; DS:DI: Ptr to MENUPAGE to set active … … 39 35 ; Nothing 40 36 ; Corrupts registers: 41 ; AX, DI37 ; Nothing 42 38 ;-------------------------------------------------------------------- 43 39 ALIGN JUMP_ALIGN -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm
r108 r109 36 36 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 0 37 37 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 0FFh 38 iend39 40 g_MenuitemBootMnuStngsDisplayRomBoot:41 istruc MENUITEM42 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI43 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI44 at MENUITEM.szName, dw g_szItemBootRomBoot45 at MENUITEM.szQuickInfo, dw g_szNfoBootRomBoot46 at MENUITEM.szHelp, dw g_szHelpBootRomBoot47 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE48 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE49 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags50 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootRomBoot51 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag52 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans53 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_ROMBOOT54 38 iend 55 39 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm
r108 r109 63 63 iend 64 64 65 g_MenuitemConfigurationQuinaryIdeController:66 istruc MENUITEM67 at MENUITEM.fnActivate, dw QuinaryIdeController68 at MENUITEM.szName, dw g_szItemCfgIde569 at MENUITEM.szQuickInfo, dw g_szNfoCfgIde70 at MENUITEM.szHelp, dw g_szNfoCfgIde71 at MENUITEM.bFlags, db NULL72 at MENUITEM.bType, db TYPE_MENUITEM_PAGENEXT73 iend74 75 65 g_MenuitemConfigurationBootMenuSettings: 76 66 istruc MENUITEM … … 79 69 at MENUITEM.szQuickInfo, dw g_szNfoCfgBootMenu 80 70 at MENUITEM.szHelp, dw g_szNfoCfgBootMenu 81 at MENUITEM.bFlags, db NULL 82 at MENUITEM.bType, db TYPE_MENUITEM_PAGENEXT 83 iend 84 85 g_MenuitemConfigurationBootLoaderType: 86 istruc MENUITEM 87 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI 88 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 89 at MENUITEM.szName, dw g_szItemCfgBootLoader 90 at MENUITEM.szQuickInfo, dw g_szNfoCfgBootLoader 91 at MENUITEM.szHelp, dw g_szNfoCfgBootLoader 92 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_BYTEVALUE 93 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 94 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootLdrType 95 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szItemCfgBootLoader 96 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceCfgBootLoader 97 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForBootLoaderType 98 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForBootLoaderType 71 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE 72 at MENUITEM.bType, db TYPE_MENUITEM_PAGENEXT 99 73 iend 100 74 … … 142 116 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgCfgIdeCnt 143 117 at MENUITEM.itemValue + ITEM_VALUE.wMinValue, dw 1 144 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 5 145 iend 146 147 148 g_rgwChoiceToValueLookupForBootLoaderType: 149 dw BOOTLOADER_TYPE_MENU 150 dw BOOTLOADER_TYPE_SIMPLE 151 dw BOOTLOADER_TYPE_NONE 152 g_rgszValueToStringLookupForBootLoaderType: 153 dw g_szValueCfgBootLoaderMenu 154 dw g_szValueCfgBootLoaderAthenC 155 dw g_szUnidentified 156 dw g_szValueCfgBootLoaderSystem 118 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 4 119 iend 157 120 158 121 … … 175 138 call .DisableAllIdeControllerMenuitems 176 139 call .EnableIdeControllerMenuitemsBasedOnConfiguration 177 call .EnableOrDisableBootMenuSettings178 140 call .EnableOrDisableKiBtoStealFromRAM 179 141 call .EnableOrDisableIdeControllerCount … … 239 201 mov cx, 1 240 202 ret 241 242 243 ;--------------------------------------------------------------------244 ; .EnableOrDisableBootMenuSettings245 ; Parameters:246 ; SS:BP: Menu handle247 ; Returns:248 ; Nothing249 ; Corrupts registers:250 ; AX, BX, CX251 ;--------------------------------------------------------------------252 ALIGN JUMP_ALIGN253 .EnableOrDisableBootMenuSettings:254 mov bx, ROMVARS.bBootLdrType255 call Buffers_GetRomvarsValueToAXfromOffsetInBX256 mov bx, g_MenuitemConfigurationBootMenuSettings257 cmp ax, BYTE BOOTLOADER_TYPE_MENU258 jne SHORT .DisableMenuitemFromCSBX259 jmp SHORT .EnableMenuitemFromCSBX260 261 203 262 204 ;-------------------------------------------------------------------- … … 291 233 mov bx, g_MenuitemConfigurationIdeControllers 292 234 test ax, FLG_ROMVARS_FULLMODE 293 jz SHORT .DisableMenuitemFromCSBX 294 jmp SHORT .EnableMenuitemFromCSBX 235 jnz SHORT .EnableMenuitemFromCSBX 236 .LimitIdeControllerCountToOneForLiteMode: 237 call Buffers_GetFileBufferToESDI 238 mov BYTE [es:di+ROMVARS.bIdeCnt], 1 239 jmp SHORT .DisableMenuitemFromCSBX 295 240 296 241 ;-------------------------------------------------------------------- … … 343 288 QuaternaryIdeController: 344 289 mov bx, ROMVARS.ideVars3 345 jmp SHORT DisplayIdeControllerMenu346 347 ALIGN JUMP_ALIGN348 QuinaryIdeController:349 mov bx, ROMVARS.ideVars4350 290 ; Fall to DisplayIdeControllerMenu 351 291 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r108 r109 198 198 call Buffers_GetRomvarsValueToAXfromOffsetInBX 199 199 mov bx, g_MenuitemIdeControllerIdeIRQ 200 test a x, ax200 test al, al 201 201 jz SHORT .DisableMenuitemFromCSBX 202 202 ; Fall to .EnableMenuitemFromCSBX -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r108 r109 7 7 ; Menu title 8 8 g_szProgramTitle: 9 db "Configuration and Flashing program for XTIDE Universal BIOS v1. 1.5.",LF,CR,NULL10 g_szXtideUniversalBiosSignature: db "XTIDE1 10",NULL9 db "Configuration and Flashing program for XTIDE Universal BIOS v1.2.0.",LF,CR,NULL 10 g_szXtideUniversalBiosSignature: db "XTIDE120",NULL 11 11 g_szBiosIsNotLoaded: db "BIOS is not loaded!",NULL 12 12 g_szEEPROM: db "EEPROM",NULL … … 38 38 39 39 ; Flashing related strings 40 g_szFlashTitle: db "Flashing EEPROM, please wait.",NULL 40 41 g_szErrEepromTooSmall: db "Image is too large for selected EEPROM type!",NULL 41 42 g_szErrEepromPolling: db "Timeout when polling EEPROM.",LF … … 80 81 g_szItemCfgIde3: db "Tertiary IDE Controller",NULL 81 82 g_szItemCfgIde4: db "Quaternary IDE Controller",NULL 82 g_szItemCfgIde5: db "Quinary IDE Controller",NULL83 83 g_szItemCfgBootMenu: db "Boot menu settings",NULL 84 g_szItemCfgBootLoader: db "Boot loader type",NULL85 84 g_szItemCfgFullMode: db "Full operating mode",NULL 86 85 g_szItemCfgStealSize: db "kiB to steal from RAM",NULL … … 93 92 g_szNfoCfgIde: db "IDE controller and drive configuration.",NULL 94 93 g_szNfoCfgBootMenu: db "Boot menu configuration.",NULL 95 g_szNfoCfgBootLoader: db "Boot loader selection for INT 19h.",NULL96 94 g_szNfoCfgFullMode: db "Full mode supports multiple controllers and has more features.",NULL 97 95 g_szNfoCfgStealSize: db "How many kiB's to steal from Conventional memory for XTIDE Universal BIOS variables.",NULL … … 102 100 g_szHelpCfgStealSize: incbin "Configuration_StealSize.txt" 103 101 db NULL 104 105 g_szMultichoiceCfgBootLoader:106 db "Boot menu",LF107 db "Drive A then C",LF108 db "System boot loader",NULL109 110 g_szValueCfgBootLoaderMenu: db "Menu",NULL111 g_szValueCfgBootLoaderAthenC: db "A, C",NULL112 g_szValueCfgBootLoaderSystem: db "System",NULL113 102 114 103 … … 190 179 g_szItemBootFloppyDrvs: db "Number of Floppy Drives",NULL 191 180 g_szItemBootSwap: db "Swap boot drive numbers",NULL 192 g_szItemBootRomBoot: db "Display ROM boot",NULL193 181 194 182 g_szDlgBootTimeout: db "Enter Boot Menu selection timeout in seconds (1...60, 0 disables timeout).",NULL … … 196 184 g_szDlgBootFloppyDrvs: db "Enter number of Floppy Drives to display on boot menu.",NULL 197 185 g_szDlgBootSwap: db "Enable drive number translation?",NULL 198 g_szDlgBootRomBoot: db "Show ROM Boot option on boot menu?",NULL199 186 200 187 g_szNfoBootTimeout: db "Menu item selection timeout in seconds.",NULL … … 202 189 g_szNfoBootFloppyDrvs: db "Number of Floppy Drives to display on boot menu.",NULL 203 190 g_szNfoBootSwap: db "Drive Number Translation (swap first drive with selected).",NULL 204 g_szNfoBootRomBoot: db "Show ROM Basic or ROM DOS boot option.",NULL205 191 206 192 g_szHelpBootTimeout: incbin "Bootmenu_Timeout.txt" … … 211 197 db NULL 212 198 g_szHelpBootSwap: incbin "Bootmenu_SwapDrives.txt" 213 db NULL214 g_szHelpBootRomBoot: incbin "Bootmenu_RomBoot.txt"215 199 db NULL 216 200
Note:
See TracChangeset
for help on using the changeset viewer.