Changeset 421 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu
- Timestamp:
- May 9, 2012, 7:12:53 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm
r399 r421 202 202 push dx ; Magnitude character 203 203 204 test di, di 204 test di, di ; Zero if foreign drive 205 205 jz SHORT BootMenuPrint_RefreshInformation.FormatRelay 206 206 … … 229 229 ; CX 230 230 ;-------------------------------------------------------------------- 231 GetTotalSectorCount: 232 test BYTE [di+DPT.bFlagsLow], FLG_DRVNHEAD_LBA 233 jnz SHORT .ReturnFullCapacity 234 jmp AH15h_GetSectorCountToBXDXAX 235 .ReturnFullCapacity: 236 jmp AccessDPT_GetLbaSectorCountToBXDXAX 231 %ifdef MODULE_EBIOS 232 GetTotalSectorCount EQU AccessDPT_GetLbaSectorCountToBXDXAX 233 %else 234 GetTotalSectorCount EQU AH15h_GetSectorCountToBXDXAX 235 %endif -
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrintCfg.asm
r400 r421 43 43 eMOVZX ax, [di+DPT.bIdevarsOffset] 44 44 xchg bx, ax ; CS:BX now points to IDEVARS 45 ; Fall to .PushA ndFormatCfgString45 ; Fall to .PushAddressingMode 46 46 47 47 ;-------------------------------------------------------------------- 48 ; PushAddressingMode48 ; .PushAddressingMode 49 49 ; Parameters: 50 50 ; DS:DI: Ptr to DPT … … 53 53 ; Nothing (jumps to next push below) 54 54 ; Corrupts registers: 55 ; AX, CX 55 ; AX, CX, DX 56 56 ;-------------------------------------------------------------------- 57 57 .PushAddressingMode: 58 A ccessDPT_GetUnshiftedAddressModeToALZF58 ACCESSDPT__GET_UNSHIFTED_ADDRESS_MODE_TO_AXZF 59 59 ;; 60 60 ;; This multiply both shifts the addressing mode bits down to low order bits, and … … 62 62 ;; with AL clear, and so we exchange AL and AH after the multiply for the final result. 63 63 ;; 64 mov c l,(1<<(8-ADDRESSING_MODE_FIELD_POSITION)) * g_szAddressingModes_Displacement65 mul c l66 xchg al, ah67 add ax, g_szAddressingModes64 mov cx, g_szAddressingModes_Displacement << (8-ADDRESSING_MODE_FIELD_POSITION) 65 mul cx 66 xchg al, ah ; AL = always zero after above multiplication 67 add ax, g_szAddressingModes 68 68 push ax 69 ; Fall to .PushBlockMode 69 70 70 71 ;-------------------------------------------------------------------- 71 ; PushBlockMode72 ; .PushBlockMode 72 73 ; Parameters: 73 74 ; DS:DI: Ptr to DPT
Note:
See TracChangeset
for help on using the changeset viewer.