Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Apr 19, 2012, 11:11:41 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrint.asm
r392 r397 42 42 jc .notOurs 43 43 44 call BootMenuInfo_ConvertDPTtoBX44 call DriveDetectInfo_ConvertDPTtoBX 45 45 mov si, g_szDriveNumBOOTNFO ; special g_szDriveNum that prints from BDA 46 46 jmp .go … … 186 186 .HardDiskMenuitemInfoForOurDrive: 187 187 ePUSH_T ax, g_szInformation ; Add substring for our hard disk information 188 call BootMenuInfo_GetTotalSectorCount ; Get Total LBA Size188 call GetTotalSectorCount 189 189 jmp .ConvertSectorCountInBXDXAXtoSizeAndPushForFormat 190 190 … … 218 218 db 2880 / FloppyTypes.rgbCapacityMultiplier ; type 5 219 219 db 2880 / FloppyTypes.rgbCapacityMultiplier ; type 6 220 221 222 ;-------------------------------------------------------------------- 223 ; GetTotalSectorCount 224 ; Parameters: 225 ; DS:DI: DPT Pointer 226 ; Returns: 227 ; BX:DX:AX: 48-bit sector count 228 ; Corrupts registers: 229 ; CX 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 -
trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
r395 r397 33 33 ALIGN JUMP_ALIGN 34 34 DriveXlate_ToOrBack: 35 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_DRVXLAT36 jz SHORT .Return ; Return if translation disabled37 35 xchg di, ax ; Backup AX 38 36 … … 57 55 .RestoreAXandReturn: 58 56 xchg ax, di ; Restore AX 59 ALIGN JUMP_ALIGN, ret60 .Return:61 57 ret 62 58 … … 73 69 ; Nothing 74 70 ;-------------------------------------------------------------------- 75 ALIGN JUMP_ALIGN76 71 DriveXlate_Reset: 77 72 mov WORD [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], 8000h … … 91 86 ; Nothing 92 87 ;-------------------------------------------------------------------- 93 ALIGN JUMP_ALIGN94 88 DriveXlate_SetDriveToSwap: 95 89 test dl, dl ; Floppy drive? 96 js SHORT .SetHardDiskToSwap 97 .SetFloppyDriveToSwap: 90 js SHORT .SetHardDriveToSwap 91 92 ; Set Floppy Drive to swap 98 93 mov [RAMVARS.xlateVars+XLATEVARS.bFDSwap], dl 99 94 ret 100 ALIGN JUMP_ALIGN 101 .SetHardD iskToSwap:95 96 .SetHardDriveToSwap: 102 97 mov [RAMVARS.xlateVars+XLATEVARS.bHDSwap], dl 103 98 ret
Note:
See TracChangeset
for help on using the changeset viewer.