Changeset 121 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers
- Timestamp:
- Feb 28, 2011, 5:13:38 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19hMenu.asm
r96 r121 18 18 ALIGN JUMP_ALIGN 19 19 Int19hMenu_BootLoader: 20 ; Store POST stack pointer 20 21 LOAD_BDA_SEGMENT_TO ds, ax 21 call BootVars_StorePostStackPointer22 STORE_POST_STACK_POINTER 22 23 23 24 ; Install new INT 19h handler now that BOOTVARS has been initialized … … 35 36 ALIGN JUMP_ALIGN 36 37 DisplayBootMenu: 37 call BootVars_SwitchToBootMenuStack 38 SWITCH_TO_BOOT_MENU_STACK 39 CALL_DISPLAY_LIBRARY InitializeDisplayContext 38 40 call RamVars_GetSegmentToDS 39 41 ; Fall to .ProcessMenuSelectionsUntilBootable … … 52 54 call BootSector_TryToLoadFromDriveDL 53 55 jnc SHORT .ProcessMenuSelectionsUntilBootable ; Boot failure, show menu again 54 call BootVars_SwitchBackToPostStack56 SWITCH_BACK_TO_POST_STACK 55 57 ; Fall to JumpToBootSector 56 58 … … 68 70 push bx ; Push boot sector offset 69 71 call ClearSegmentsForBoot 70 xor dh, dh ; Device supported by INT 13h71 72 retf 72 73 … … 81 82 ALIGN JUMP_ALIGN 82 83 Int19hMenu_RomBoot: 83 call BootVars_SwitchBackToPostStack84 SWITCH_BACK_TO_POST_STACK 84 85 call ClearSegmentsForBoot 85 86 int INTV_BOOT_FAILURE ; Never returns … … 91 92 ; Nothing 92 93 ; Returns: 94 ; DX: Zero 93 95 ; DS=ES: Zero 94 96 ; Corrupts registers: 95 ; AX97 ; Nothing 96 98 ;-------------------------------------------------------------------- 97 99 ALIGN JUMP_ALIGN 98 100 ClearSegmentsForBoot: 99 xor ax, ax100 mov ds, ax101 mov es, ax101 xor dx, dx ; Device supported by INT 13h 102 mov ds, dx 103 mov es, dx 102 104 ret
Note:
See TracChangeset
for help on using the changeset viewer.