- Timestamp:
- Sep 11, 2012, 5:53:27 PM (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/BootMenuSettingsMenu.asm
r403 r459 94 94 at MENUITEM.szQuickInfo, dw g_szNfoBootDrive 95 95 at MENUITEM.szHelp, dw g_szHelpBootDrive 96 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_BYTEVALUE96 at MENUITEM.bFlags, db FLG_MENUITEM_BYTEVALUE 97 97 at MENUITEM.bType, db TYPE_MENUITEM_HEX 98 98 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw ROMVARS.bBootDrv … … 163 163 push cs 164 164 pop ds 165 call EnableOrDisableBootMenuSettings 166 call EnableOrDisableSerialSettings 165 call .EnableOrDisableScanForSerialDrives 166 call .EnableOrDisableDefaultBootDrive 167 call .EnableOrDisableBootMenuSelectionTimeout 167 168 mov si, g_MenupageForBootMenuSettingsMenu 168 169 jmp Menupage_ChangeToNewMenupageInDSSI … … 170 171 171 172 ;-------------------------------------------------------------------- 172 ; EnableOrDisableBootMenuSettings173 ; .EnableOrDisableScanForSerialDrives 173 174 ; Parameters: 174 175 ; SS:BP: Menu handle … … 179 180 ;-------------------------------------------------------------------- 180 181 ALIGN JUMP_ALIGN 181 EnableOrDisableBootMenuSettings: 182 mov bx, ROMVARS.wFlags 183 call Buffers_GetRomvarsValueToAXfromOffsetInBX 182 .EnableOrDisableScanForSerialDrives: 183 call Buffers_GetRomvarsFlagsToAX 184 mov bx, g_MenuitemBootMenuSerialScanDetect 185 test ax, FLG_ROMVARS_MODULE_SERIAL 186 jmp SHORT .DisableMenuitemFromCSBXifZFset 187 188 189 ;-------------------------------------------------------------------- 190 ; .EnableOrDisableDefaultBootDrive 191 ; Parameters: 192 ; SS:BP: Menu handle 193 ; Returns: 194 ; Nothing 195 ; Corrupts registers: 196 ; AX, BX 197 ;-------------------------------------------------------------------- 198 ALIGN JUMP_ALIGN 199 .EnableOrDisableDefaultBootDrive: 200 call Buffers_GetRomvarsFlagsToAX 201 mov bx, g_MenuitemBootMnuStngsDefaultBootDrive 202 test ax, FLG_ROMVARS_MODULE_HOTKEYS 203 jmp SHORT .DisableMenuitemFromCSBXifZFset 204 205 206 ;-------------------------------------------------------------------- 207 ; .EnableOrDisableBootMenuSelectionTimeout 208 ; Parameters: 209 ; SS:BP: Menu handle 210 ; Returns: 211 ; Nothing 212 ; Corrupts registers: 213 ; AX, BX 214 ;-------------------------------------------------------------------- 215 ALIGN JUMP_ALIGN 216 .EnableOrDisableBootMenuSelectionTimeout: 217 call Buffers_GetRomvarsFlagsToAX 218 mov bx, g_MenuitemBootMnuStngsSelectionTimeout 184 219 test ax, FLG_ROMVARS_MODULE_BOOT_MENU 185 mov al, FLG_MENUITEM_VISIBLE 186 jz SHORT .DisableBootMenuSettings 187 188 ; Enable boot menu related 189 or [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al 220 .DisableMenuitemFromCSBXifZFset: 221 jz SHORT .DisableMenuitemFromCSBX 222 ; Fall to .EnableMenuitemFromCSBX 223 224 225 ;-------------------------------------------------------------------- 226 ; .EnableMenuitemFromCSBX 227 ; .DisableMenuitemFromCSBX 228 ; Parameters: 229 ; CS:BX: Ptr to MENUITEM 230 ; Returns: 231 ; Nothing 232 ; Corrupts registers: 233 ; Nothing 234 ;-------------------------------------------------------------------- 235 ALIGN JUMP_ALIGN 236 .EnableMenuitemFromCSBX: 237 or BYTE [cs:bx+MENUITEM.bFlags], FLG_MENUITEM_VISIBLE 190 238 ret 191 239 192 .DisableBootMenuSettings: 193 not ax 194 and [g_MenuitemBootMnuStngsSelectionTimeout+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 240 ALIGN JUMP_ALIGN 241 .DisableMenuitemFromCSBX: 242 and BYTE [cs:bx+MENUITEM.bFlags], ~FLG_MENUITEM_VISIBLE 221 243 ret 222 244 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r438 r459 163 163 at MENUITEM.szQuickInfo, dw g_szNfoIdeEnIRQ 164 164 at MENUITEM.szHelp, dw g_szHelpIdeEnIRQ 165 at MENUITEM.bFlags, db FLG_MENUITEM_ VISIBLE | FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE165 at MENUITEM.bFlags, db FLG_MENUITEM_MODIFY_MENU | FLG_MENUITEM_FLAGVALUE 166 166 at MENUITEM.bType, db TYPE_MENUITEM_MULTICHOICE 167 167 at MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset, dw NULL … … 332 332 push cs 333 333 pop ds 334 call .EnableOrDisableIRQ 334 call .DisableIRQchannelSelection 335 call .EnableOrDisableEnableInterrupt 335 336 call .EnableOrDisableSerial 336 337 mov si, g_MenupageForIdeControllerMenu 337 338 jmp Menupage_ChangeToNewMenupageInDSSI 338 339 339 ;-------------------------------------------------------------------- 340 ; .EnableOrDisableIRQ 340 341 ;-------------------------------------------------------------------- 342 ; .EnableOrDisableEnableInterrupt 341 343 ; Parameters: 342 344 ; SS:BP: Menu handle … … 347 349 ;-------------------------------------------------------------------- 348 350 ALIGN JUMP_ALIGN 349 .EnableOrDisableIRQ: 351 .EnableOrDisableEnableInterrupt: 352 call Buffers_GetRomvarsFlagsToAX 353 mov bx, g_MenuitemIdeControllerEnableInterrupt 354 test ax, FLG_ROMVARS_MODULE_IRQ 355 jz SHORT .DisableMenuitemFromCSBX 356 357 mov bx, [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 358 call Buffers_GetRomvarsValueToAXfromOffsetInBX 359 mov bx, g_MenuitemIdeControllerEnableInterrupt 360 cmp al, DEVICE_SERIAL_PORT 361 jae SHORT .DisableMenuitemFromCSBX 362 cmp al, DEVICE_8BIT_XTCF 363 jbe SHORT .DisableMenuitemFromCSBX 364 365 call .EnableMenuitemFromCSBX 366 ; Fall to .EnableOrDisableIRQchannelSelection 367 368 ;-------------------------------------------------------------------- 369 ; .EnableOrDisableIRQchannelSelection 370 ; Parameters: 371 ; SS:BP: Menu handle 372 ; Returns: 373 ; Nothing 374 ; Corrupts registers: 375 ; AX, BX 376 ;-------------------------------------------------------------------- 377 ALIGN JUMP_ALIGN 378 .EnableOrDisableIRQchannelSelection: 350 379 mov bx, [cs:g_MenuitemIdeControllerEnableInterrupt+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 351 380 call Buffers_GetRomvarsValueToAXfromOffsetInBX 352 381 mov bx, g_MenuitemIdeControllerIdeIRQ 353 382 test al, al 383 jnz SHORT .EnableMenuitemFromCSBX 384 .DisableIRQchannelSelection: 385 mov bx, g_MenuitemIdeControllerIdeIRQ 354 386 jz SHORT .DisableMenuitemFromCSBX 355 ; Fall to .EnableMenuitemFromCSBX 356 357 ;-------------------------------------------------------------------- 387 ; Fall to .DisableMenuitemFromCSBX 388 389 390 ;-------------------------------------------------------------------- 391 ; .DisableMenuitemFromCSBX 358 392 ; .EnableMenuitemFromCSBX 359 ; .DisableMenuitemFromCSBX360 393 ; Parameters: 361 394 ; CS:BX: Ptr to MENUITEM … … 365 398 ; Nothing 366 399 ;-------------------------------------------------------------------- 400 ALIGN JUMP_ALIGN 401 .DisableMenuitemFromCSBX: 402 and BYTE [cs:bx+MENUITEM.bFlags], ~FLG_MENUITEM_VISIBLE 403 ret 404 367 405 ALIGN JUMP_ALIGN 368 406 .EnableMenuitemFromCSBX: … … 370 408 ret 371 409 372 ALIGN JUMP_ALIGN373 .DisableMenuitemFromCSBX:374 and BYTE [cs:bx+MENUITEM.bFlags], ~FLG_MENUITEM_VISIBLE375 ret376 410 377 411 .EnableOrDisableSerial: … … 382 416 call .DisableMenuitemFromCSBX 383 417 384 mov bx, g_MenuitemIdeControllerEnableInterrupt385 call .DisableMenuitemFromCSBX386 387 418 mov bx, g_MenuitemIdeControllerSerialBaud 388 419 call .DisableMenuitemFromCSBX … … 396 427 mov bx, [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset] 397 428 call Buffers_GetRomvarsValueToAXfromOffsetInBX 398 cmp al, DEVICE_SERIAL_PORT429 cmp al, DEVICE_SERIAL_PORT 399 430 jnz .DisableAllSerial 400 431 … … 418 449 419 450 mov bx, g_MenuitemIdeControllerControlBlockAddress 420 call .EnableMenuitemFromCSBX421 422 mov bx, g_MenuitemIdeControllerEnableInterrupt423 451 call .EnableMenuitemFromCSBX 424 452 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r438 r459 380 380 381 381 g_szNfoBootTimeout: db "Menu item selection timeout in BIOS timer ticks. 1 tick = 54.9 ms.",NULL 382 g_szNfoBootDrive: db "Default drive on boot menu.",NULL382 g_szNfoBootDrive: db "Default boot drive.",NULL 383 383 g_szNfoDispMode: db "Display mode to set when booting.",NULL 384 384 g_szNfoBootFloppyDrvs: db "Number of Floppy Drives in system.",NULL
Note:
See TracChangeset
for help on using the changeset viewer.