Changeset 592 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm
- Timestamp:
- Jun 25, 2018, 10:29:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm
r589 r592 245 245 ; Nothing 246 246 ; Corrupts registers: 247 ; BX , DI, ES247 ; BX 248 248 ;-------------------------------------------------------------------- 249 249 ALIGN JUMP_ALIGN … … 262 262 ; Nothing 263 263 ; Corrupts registers: 264 ; AX, BX , CX264 ; AX, BX 265 265 ;-------------------------------------------------------------------- 266 266 ALIGN JUMP_ALIGN … … 268 268 call Buffers_GetRomvarsFlagsToAX 269 269 mov bx, g_MenuitemConfigurationKiBtoStealFromRAM 270 test a x, FLG_ROMVARS_FULLMODE270 test al, FLG_ROMVARS_FULLMODE 271 271 jz SHORT .DisableMenuitemFromCSBX 272 272 jmp SHORT .EnableMenuitemFromCSBX … … 319 319 ; All, except segments 320 320 ;-------------------------------------------------------------------- 321 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 322 %if (ROMVARS.ideVars0 | ROMVARS.ideVars1 | ROMVARS.ideVars2 | ROMVARS.ideVars3) & 0FF00h = 0 323 PrimaryIdeController: 324 mov bl, ROMVARS.ideVars0 & 0FFh 325 SKIP2B f 326 SecondaryIdeController: 327 mov bl, ROMVARS.ideVars1 & 0FFh 328 SKIP2B f 329 TertiaryIdeController: 330 mov bl, ROMVARS.ideVars2 & 0FFh 331 SKIP2B f 332 QuaternaryIdeController: 333 mov bl, ROMVARS.ideVars3 & 0FFh 334 xor bh, bh 335 ; Fall to DisplayIdeControllerMenu 336 %else 321 337 ALIGN JUMP_ALIGN 322 338 PrimaryIdeController: … … 338 354 mov bx, ROMVARS.ideVars3 339 355 ; Fall to DisplayIdeControllerMenu 356 %endif 357 %endif 340 358 341 359 ALIGN JUMP_ALIGN … … 383 401 ; Nothing 384 402 ; Corrupts registers: 385 ; A ll403 ; AX, BX, CX, DX 386 404 ;---------------------------------------------------------------------- 387 405 ConfigurationMenu_CheckAndMoveSerialDrivesToBottom: … … 428 446 ; move serial to end of list, others up 429 447 ; 448 %ifdef CLD_NEEDED 430 449 cld 431 450 %endif 432 451 mov ax, di ; save end pointer of list after scan 433 434 452 sub sp, IDEVARS_size ; copy serial to temporary space on stack 435 436 453 mov di, sp 437 454 … … 439 456 pop es 440 457 458 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 441 459 %if IDEVARS_size & 1 442 460 mov cl, IDEVARS_size … … 446 464 rep movsw 447 465 %endif 466 %endif 448 467 449 468 lea di, [si-IDEVARS_size] ; move up all the idevars below the serial, by one slot 450 451 469 mov cx, ax ; restore end pointer of list, subtract off end of serial idevars 452 470 sub cx, si … … 462 480 ; di is already at last IDEVARS position 463 481 482 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 464 483 %if IDEVARS_size & 1 465 484 mov cl, IDEVARS_size … … 469 488 rep movsw 470 489 %endif 490 %endif 471 491 472 492 add sp, IDEVARS_size … … 476 496 477 497 mov dh, 1 ; set flag that we have done a relocation 478 479 498 jmp SHORT .outerLoop 480 499
Note:
See TracChangeset
for help on using the changeset viewer.