Changeset 403 in xtideuniversalbios
- Timestamp:
- Apr 20, 2012, 4:38:26 PM (13 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/BootMenuSettingsMenu.asm
r399 r403 26 26 at MENUPAGE.fnEnter, dw BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility 27 27 at MENUPAGE.fnBack, dw ConfigurationMenu_EnterMenuOrModifyItemVisibility 28 at MENUPAGE.wMenuitems, dw 828 at MENUPAGE.wMenuitems, dw 6 29 29 iend 30 30 … … 78 78 at MENUITEM.szQuickInfo, dw g_szNfoSerialDetect 79 79 at MENUITEM.szHelp, dw g_szHelpSerialDetect 80 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_FLAGVALUE80 at MENUITEM.bFlags, db FLG_MENUITEM_FLAGVALUE 81 81 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 82 82 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags … … 87 87 iend 88 88 89 g_MenuitemBootMnuStngsEnableBootMenu:90 istruc MENUITEM91 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI92 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI93 at MENUITEM.szName, dw g_szItemBootEnableMenu94 at MENUITEM.szQuickInfo, dw g_szNfoBootEnableMenu95 at MENUITEM.szHelp, dw g_szNfoBootEnableMenu96 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU97 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE98 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wfDisplayBootMenu99 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootEnableMenu100 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag101 at MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup, dw g_rgwChoiceToValueLookupForEnableBootMenu102 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans103 at MENUITEM.itemValue + ITEM_VALUE.fnValueReader, dw ValueReaderForEnableBootMenu104 iend105 106 89 g_MenuitemBootMnuStngsDefaultBootDrive: 107 90 istruc MENUITEM … … 111 94 at MENUITEM.szQuickInfo, dw g_szNfoBootDrive 112 95 at MENUITEM.szHelp, dw g_szHelpBootDrive 113 at MENUITEM.bFlags, db FLG_MENUITEM_ BYTEVALUE96 at MENUITEM.bFlags, db FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE 114 97 at MENUITEM.bType, db TYPE_MENUITEM_HEX 115 98 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDrv … … 133 116 at MENUITEM.itemValue + ITEM_VALUE.wMaxValue, dw 1092 134 117 iend 135 136 %if 0 ; *FIXME*137 g_MenuitemBootMnuStngsSwapBootDriveNumbers:138 istruc MENUITEM139 at MENUITEM.fnActivate, dw Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI140 at MENUITEM.fnFormatValue, dw MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI141 at MENUITEM.szName, dw g_szItemBootSwap142 at MENUITEM.szQuickInfo, dw g_szNfoBootSwap143 at MENUITEM.szHelp, dw g_szHelpBootSwap144 at MENUITEM.bFlags, db FLG_MENUITEM_FLAGVALUE145 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE146 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.wFlags147 at MENUITEM.itemValue + ITEM_VALUE.szDialogTitle, dw g_szDlgBootSwap148 at MENUITEM.itemValue + ITEM_VALUE.szMultichoice, dw g_szMultichoiceBooleanFlag149 at MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup, dw g_rgszValueToStringLookupForFlagBooleans150 at MENUITEM.itemValue + ITEM_VALUE.wValueBitmask, dw FLG_ROMVARS_DRVXLAT151 iend152 %endif153 118 154 119 … … 199 164 pop ds 200 165 call EnableOrDisableBootMenuSettings 166 call EnableOrDisableSerialSettings 201 167 mov si, g_MenupageForBootMenuSettingsMenu 202 168 jmp Menupage_ChangeToNewMenupageInDSSI … … 214 180 ALIGN JUMP_ALIGN 215 181 EnableOrDisableBootMenuSettings: 216 mov bx, [cs:g_MenuitemBootMnuStngsEnableBootMenu+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]182 mov bx, ROMVARS.wFlags 217 183 call Buffers_GetRomvarsValueToAXfromOffsetInBX 218 test ax, ax184 test ax, FLG_ROMVARS_MODULE_BOOT_MENU 219 185 mov al, FLG_MENUITEM_VISIBLE 220 186 jz SHORT .DisableBootMenuSettings 221 187 222 188 ; Enable boot menu related 223 or [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al224 189 or [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al 225 ; or [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al226 190 ret 227 191 228 192 .DisableBootMenuSettings: 229 193 not ax 230 and [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al231 194 and [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al 232 ; and [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al 195 ret 196 197 198 ;-------------------------------------------------------------------- 199 ; EnableOrDisableSerialSettings 200 ; Parameters: 201 ; SS:BP: Menu handle 202 ; Returns: 203 ; Nothing 204 ; Corrupts registers: 205 ; AX, BX 206 ;-------------------------------------------------------------------- 207 EnableOrDisableSerialSettings: 208 mov bx, ROMVARS.wFlags 209 call Buffers_GetRomvarsValueToAXfromOffsetInBX 210 test ax, FLG_ROMVARS_MODULE_SERIAL 211 mov al, FLG_MENUITEM_VISIBLE 212 jz SHORT .DisableSerialSettings 213 214 ; Enable serial related 215 or [g_MenuitemBootMenuSerialScanDetect+MENUITEM.bFlags], al 216 ret 217 218 .DisableSerialSettings: 219 not ax 220 and [g_MenuitemBootMenuSerialScanDetect+MENUITEM.bFlags], al 233 221 ret 234 222 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r399 r403 188 188 189 189 g_rgwChoiceToValueLookupForDevice: 190 dw DEVICE_XTIDE_REV1 191 dw DEVICE_XTIDE_REV2 192 dw DEVICE_FAST_XTIDE 190 dw DEVICE_8BIT_JRIDE_ISA 191 dw DEVICE_8BIT_FAST_XTIDE 192 dw DEVICE_8BIT_XTIDE_REV2 193 dw DEVICE_8BIT_XTIDE_REV1 193 194 dw DEVICE_16BIT_ATA 194 195 dw DEVICE_32BIT_ATA 195 196 dw DEVICE_SERIAL_PORT 196 dw DEVICE_JRIDE_ISA197 197 g_rgszValueToStringLookupForDevice: 198 dw g_szValueCfgDeviceJrIdeIsa 199 dw g_szValueCfgDeviceFast 200 dw g_szValueCfgDeviceRev2 198 201 dw g_szValueCfgDeviceRev1 199 dw g_szValueCfgDeviceRev2200 dw g_szValueCfgDeviceFast201 202 dw g_szValueCfgDevice16b 202 203 dw g_szValueCfgDevice32b 203 204 dw g_szValueCfgDeviceSerial 204 dw g_szValueCfgDeviceJrIdeIsa 205 205 206 206 207 g_rgbChoiceToValueLookupForCOM: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r399 r403 238 238 239 239 g_szMultichoiceCfgDevice: 240 db "JR-IDE/ISA",LF 241 db "Fast XTIDE (CPLD v2 project)",LF 242 db "XTIDE rev 2 or modded rev 1",LF 240 243 db "XTIDE rev 1",LF 241 db "XTIDE rev 2 or modded rev 1",LF242 db "Fast XTIDE (CPLD v2 project)",LF243 244 db "16-bit ISA/VLB/PCI IDE",LF 244 245 db "32-bit VLB/PCI IDE",LF 245 db "Serial port virtual device", LF246 db "JR-IDE/ISA",NULL 246 db "Serial port virtual device",NULL 247 247 248 248 249 g_szSerialCOMChoice: … … 295 296 296 297 298 g_szValueCfgDeviceJrIdeIsa: db "JR-ISA",NULL 299 g_szValueCfgDeviceFast: db "Fast XT",NULL 300 g_szValueCfgDeviceRev2: db "XTIDE r2",NULL 297 301 g_szValueCfgDeviceRev1: db "XTIDE r1",NULL 298 g_szValueCfgDeviceRev2: db "XTIDE r2",NULL299 g_szValueCfgDeviceFast: db "Fast XT",NULL300 302 g_szValueCfgDevice16b: db "16-bit",NULL 301 303 g_szValueCfgDevice32b: db "32-bit",NULL 302 304 g_szValueCfgDeviceSerial: db "Serial",NULL 303 g_szValueCfgDeviceJrIdeIsa: db "JR-ISA",NULL 305 304 306 305 307 … … 351 353 352 354 ; Strings for boot settings menu 353 g_szItemBootEnableMenu: db "Boot Menu",NULL354 355 g_szItemBootTimeout: db "Selection timeout",NULL 355 356 g_szItemBootDrive: db "Default boot drive",NULL 356 357 g_szItemBootDispMode: db "Display Mode",NULL 357 358 g_szItemBootFloppyDrvs: db "Number of Floppy Drives",NULL 358 ;g_szItemBootSwap: db "Swap boot drive numbers",NULL359 359 g_szItemSerialDetect: db "Scan for Serial Drives",NULL 360 360 361 g_szDlgBootEnableMenu: db "Enable Boot Menu?",NULL362 361 g_szDlgBootTimeout: db "Enter Boot Menu selection timeout in BIOS timer ticks (2...1092).",NULL 363 g_szDlgBootDrive: db "Enter default drive number (0xh for Floppy Drives, 8xh for Hard Disks, FFh for ROM boot).",NULL 364 g_szDlgBootDispMode: db "Select display mode for Boot Menu.",NULL 365 g_szDlgBootFloppyDrvs: db "Select number of Floppy Drives to display on boot menu.",NULL 366 ;g_szDlgBootSwap: db "Enable drive number translation?",NULL 362 g_szDlgBootDrive: db "Enter default drive number (0xh for Floppy Drives, 8xh for Hard Disks).",NULL 363 g_szDlgBootDispMode: db "Select display mode.",NULL 364 g_szDlgBootFloppyDrvs: db "Select number of Floppy Drives in system.",NULL 367 365 g_szDlgSerialDetect: db "Scan for serial drives?",NULL 368 366 369 g_szNfoBootEnableMenu: db "Enable to display boot drive selection menu.",NULL370 367 g_szNfoBootTimeout: db "Menu item selection timeout in BIOS timer ticks. 1 tick = 54.9 ms.",NULL 371 368 g_szNfoBootDrive: db "Default drive on boot menu.",NULL 372 g_szNfoDispMode: db "Display Mode for Boot Menu.",NULL 373 g_szNfoBootFloppyDrvs: db "Number of Floppy Drives to display on boot menu.",NULL 374 ;g_szNfoBootSwap: db "Drive Number Translation (swap first drive with selected).",NULL 369 g_szNfoDispMode: db "Display mode to set when booting.",NULL 370 g_szNfoBootFloppyDrvs: db "Number of Floppy Drives in system.",NULL 375 371 g_szNfoSerialDetect: db "Scans all standard COM ports for serial drives." 376 372 db " This can also be invoked by holding down ALT at the end of normal drive detection.",NULL … … 382 378 g_szHelpBootFloppyDrvs: incbin "Bootmenu_FloppyDrives.txt" 383 379 db NULL 384 ;g_szHelpBootSwap: incbin "Bootmenu_SwapDrives.txt"385 ; db NULL386 380 g_szHelpSerialDetect: incbin "Bootmenu_SerialDetect.txt" 387 381 db NULL
Note:
See TracChangeset
for help on using the changeset viewer.