Changeset 59 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Nov 19, 2010, 10:59:52 AM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm
r57 r59 2 2 ; Project name : XTIDE Universal BIOS Configurator v2 3 3 ; Created date : 24.10.2010 4 ; Last update : 3.11.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : "Configure XTIDE Universal BIOS" menu structs and functions. … … 13 13 istruc MENUPAGE 14 14 at MENUPAGE.fnEnter, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 15 at MENUPAGE.fnBack, dw MainMenu_EnterMenuOrModifyItemVisibility 15 16 at MENUPAGE.wMenuitems, dw 11 16 17 iend … … 78 79 g_MenuitemConfigurationBootMenuSettings: 79 80 istruc MENUITEM 80 at MENUITEM.fnActivate, dw BootMenuSettings 81 at MENUITEM.fnActivate, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility 81 82 at MENUITEM.szName, dw g_szItemCfgBootMenu 82 83 at MENUITEM.szQuickInfo, dw g_szNfoCfgBootMenu … … 89 90 istruc MENUITEM 90 91 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 91 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI92 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 92 93 at MENUITEM.szName, dw g_szItemCfgBootLoader 93 94 at MENUITEM.szQuickInfo, dw g_szNfoCfgBootLoader 94 95 at MENUITEM.szHelp, dw g_szNfoCfgBootLoader 95 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_ BYTEVALUE96 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_BYTEVALUE 96 97 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOISE 97 98 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootLdrType … … 105 106 istruc MENUITEM 106 107 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 107 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI108 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 108 109 at MENUITEM.szName, dw g_szItemCfgFullMode 109 110 at MENUITEM.szQuickInfo, dw g_szNfoCfgFullMode … … 178 179 call .DisableAllIdeControllerMenuitems 179 180 call .EnableIdeControllerMenuitemsBasedOnConfiguration 181 call .EnableOrDisableBootMenuSettings 180 182 call .EnableOrDisableKiBtoStealFromRAM 181 183 call .EnableOrDisableIdeControllerCount … … 229 231 ALIGN JUMP_ALIGN 230 232 .GetIdeControllerCountToCX: 231 mov bx, ROMVARS.wFlags 232 call Buffers_GetRomvarsValueToAXfromOffsetInBX 233 call Buffers_GetRomvarsFlagsToAX 233 234 test ax, FLG_ROMVARS_FULLMODE 234 235 jz SHORT .AllowOnlyOneIdeControllerInLiteMode … … 243 244 ret 244 245 246 247 ;-------------------------------------------------------------------- 248 ; .EnableOrDisableBootMenuSettings 249 ; Parameters: 250 ; SS:BP: Menu handle 251 ; Returns: 252 ; Nothing 253 ; Corrupts registers: 254 ; AX, BX, CX 255 ;-------------------------------------------------------------------- 256 ALIGN JUMP_ALIGN 257 .EnableOrDisableBootMenuSettings: 258 mov bx, ROMVARS.bBootLdrType 259 call Buffers_GetRomvarsValueToAXfromOffsetInBX 260 mov bx, g_MenuitemConfigurationBootMenuSettings 261 cmp ax, BYTE BOOTLOADER_TYPE_MENU 262 jne SHORT .DisableMenuitemFromCSBX 263 jmp SHORT .EnableMenuitemFromCSBX 264 265 245 266 ;-------------------------------------------------------------------- 246 267 ; .EnableOrDisableKiBtoStealFromRAM … … 254 275 ALIGN JUMP_ALIGN 255 276 .EnableOrDisableKiBtoStealFromRAM: 256 mov bx, ROMVARS.wFlags 257 call Buffers_GetRomvarsValueToAXfromOffsetInBX 277 call Buffers_GetRomvarsFlagsToAX 258 278 mov bx, g_MenuitemConfigurationKiBtoStealFromRAM 259 279 test ax, FLG_ROMVARS_FULLMODE … … 272 292 ALIGN JUMP_ALIGN 273 293 .EnableOrDisableIdeControllerCount: 274 mov bx, ROMVARS.wFlags 275 call Buffers_GetRomvarsValueToAXfromOffsetInBX 294 call Buffers_GetRomvarsFlagsToAX 276 295 mov bx, g_MenuitemConfigurationIdeControllers 277 296 test ax, FLG_ROMVARS_FULLMODE … … 339 358 call IdeControllerMenu_InitializeToIdevarsOffsetInBX 340 359 jmp IdeControllerMenu_EnterMenuOrModifyItemVisibility 341 342 343 ALIGN JUMP_ALIGN344 BootMenuSettings:345 ret -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r57 r59 2 2 ; Project name : XTIDE Universal BIOS Configurator v2 3 3 ; Created date : 2.11.2010 4 ; Last update : 3.11.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : "IDE Controller" menu structs and functions. … … 13 13 istruc MENUPAGE 14 14 at MENUPAGE.fnEnter, dw IdeControllerMenu_EnterMenuOrModifyItemVisibility 15 at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 15 16 at MENUPAGE.wMenuitems, dw 8 16 17 iend … … 49 50 istruc MENUITEM 50 51 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 51 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI52 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 52 53 at MENUITEM.szName, dw g_szItemIdeBusType 53 54 at MENUITEM.szQuickInfo, dw g_szNfoIdeBusType … … 95 96 istruc MENUITEM 96 97 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 97 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI98 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 98 99 at MENUITEM.szName, dw g_szItemIdeEnIRQ 99 100 at MENUITEM.szQuickInfo, dw g_szNfoIdeEnIRQ -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm
r57 r59 2 2 ; Project name : XTIDE Universal BIOS Configurator v2 3 3 ; Created date : 6.10.2010 4 ; Last update : 2.11.20104 ; Last update : 19.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Main menu structs and functions. … … 13 13 istruc MENUPAGE 14 14 at MENUPAGE.fnEnter, dw MainMenu_EnterMenuOrModifyItemVisibility 15 at MENUPAGE.fnBack, dw ExitToDos 15 16 at MENUPAGE.wMenuitems, dw 6 16 17 iend … … 58 59 g_MenuitemMainMenuConfigureXtideUniversalBios: 59 60 istruc MENUITEM 60 at MENUITEM.fnActivate, dw Configur eXtideUniversalBios61 at MENUITEM.fnActivate, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 61 62 at MENUITEM.szName, dw g_szItemMainConfigure 62 63 at MENUITEM.szQuickInfo, dw g_szNfoMainConfigure … … 68 69 g_MenuitemMainMenuFlashEeprom: 69 70 istruc MENUITEM 70 at MENUITEM.fnActivate, dw Flash Eeprom71 at MENUITEM.fnActivate, dw FlashMenu_EnterMenuOrModifyItemVisibility 71 72 at MENUITEM.szName, dw g_szItemMainFlash 72 73 at MENUITEM.szQuickInfo, dw g_szNfoMainFlash … … 207 208 ALIGN JUMP_ALIGN 208 209 LoadBiosFromFile: 210 call Buffers_SaveChangesIfFileLoaded 209 211 mov cx, FILE_DIALOG_IO_size 210 212 call Memory_ReserveCXbytesFromStackToDSSI … … 223 225 ALIGN JUMP_ALIGN 224 226 LoadXtideUniversalBiosFromRom: 227 call Buffers_SaveChangesIfFileLoaded 225 228 call EEPROM_LoadXtideUniversalBiosFromRomToRamBuffer 226 229 mov ax, FLG_CFGVARS_ROMLOADED … … 235 238 ALIGN JUMP_ALIGN 236 239 LoadOldSettingsFromEeprom: 240 call Buffers_SaveChangesIfFileLoaded 237 241 call EEPROM_LoadOldSettingsFromRomToRamBuffer 238 242 and WORD [g_cfgVars+CFGVARS.wFlags], ~FLG_CFGVARS_UNSAVED … … 242 246 CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI 243 247 ret 244 245 246 ALIGN JUMP_ALIGN247 ConfigureXtideUniversalBios:248 jmp ConfigurationMenu_EnterMenuOrModifyItemVisibility249 250 251 ALIGN JUMP_ALIGN252 FlashEeprom:253 ret -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm
r57 r59 2 2 ; Project name : XTIDE Universal BIOS Configurator v2 3 3 ; Created date : 3.11.2010 4 ; Last update : 3.11.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : "Master/Slave Drive" menu structs and functions. … … 13 13 istruc MENUPAGE 14 14 at MENUPAGE.fnEnter, dw MasterSlaveMenu_EnterMenuOrModifyItemVisibility 15 at MENUPAGE.fnBack, dw IdeControllerMenu_EnterMenuOrModifyItemVisibility 15 16 at MENUPAGE.wMenuitems, dw 6 16 17 iend … … 29 30 istruc MENUITEM 30 31 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 31 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI32 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 32 33 at MENUITEM.szName, dw g_szItemDrvBlockMode 33 34 at MENUITEM.szQuickInfo, dw g_szNfoDrvBlockMode … … 45 46 istruc MENUITEM 46 47 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiseSelectionForMenuitemInDSSI 47 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfrom ItemInDSSI48 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 48 49 at MENUITEM.szName, dw g_szItemDrvUserCHS 49 50 at MENUITEM.szQuickInfo, dw g_szNfoDrvUserCHS
Note:
See TracChangeset
for help on using the changeset viewer.