Changeset 365 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Mar 27, 2012, 5:01:57 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuInfo.asm
r364 r365 65 65 66 66 ;-------------------------------------------------------------------- 67 ; BootMenuInfo_IsAvailable68 ; Parameters:69 ; Nothing70 ; Returns:71 ; ES: Segment to BOOTVARS with BOOTMENUINFOs72 ; ZF: Set if BOOTVARS with BOOTMENUINFOs is available73 ; Cleared if not available (no longer initializing)74 ; Corrupts registers:75 ; BX76 ;--------------------------------------------------------------------77 BootMenuInfo_IsAvailable:78 LOAD_BDA_SEGMENT_TO es, bx79 cmp WORD [es:BOOTVARS.wMagicWord], BOOTVARS_MAGIC_WORD80 ret81 82 83 ;--------------------------------------------------------------------84 67 ; Returns offset to BOOTMENUINFO based on DPT pointer. 85 68 ; … … 90 73 ; BX: Offset to BOOTMENUINFO struct 91 74 ; Corrupts registers: 92 ; Nothing75 ; AX 93 76 ;-------------------------------------------------------------------- 94 77 BootMenuInfo_ConvertDPTtoBX: 95 push ax96 78 mov ax, di 97 79 sub ax, BYTE RAMVARS_size ; subtract off base of DPTs … … 100 82 add ax, BOOTVARS.rgBootNfo ; add base of BOOTMENUINFO 101 83 xchg ax, bx 102 pop ax103 84 ret -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrintCfg.asm
r363 r365 65 65 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED 66 66 jz SHORT .PushBlockSizeFromAX 67 mov al, [di+DPT_ATA.b SetBlock]67 mov al, [di+DPT_ATA.bBlockSize] 68 68 .PushBlockSizeFromAX: 69 69 push ax … … 114 114 ;-------------------------------------------------------------------- 115 115 .PushResetStatus: 116 call BootMenuInfo_IsAvailable ; Load segment to ES 117 call BootMenuInfo_ConvertDPTtoBX 118 push WORD [es:bx+BOOTMENUINFO.wInitErrorFlags] 116 xor ax, ax 117 %ifdef MODULE_SERIAL 118 test BYTE [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE 119 jnz SHORT .AlwaysSuccess 120 mov al, [di+DPT_ATA.bInitError] 121 .AlwaysSuccess: 122 %endif 123 push ax 119 124 120 125 ;;; fall-out to BootMenuPrint_HardDiskRefreshInformation.
Note:
See TracChangeset
for help on using the changeset viewer.