Changeset 255 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src
- Timestamp:
- Feb 18, 2012, 11:21:30 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r254 r255 115 115 call FloppyDrive_GetType ; Get Floppy Drive type to BX 116 116 117 mov cx, g_szFddSizeOr ; .PrintXTFloppyType117 mov ax, g_szFddSizeOr ; .PrintXTFloppyType 118 118 test bx, bx ; Two possibilities? (FLOPPY_TYPE_525_OR_35_DD) 119 jz SHORT BootMenuPrint_HardDiskRefreshInformation.output120 121 mov cl, (g_szFddUnknown - $$) & 0xff ; .PrintUnknownFloppyType119 jz SHORT .PushAXAndOutput 120 121 mov al, (g_szFddUnknown - $$) & 0xff ; .PrintUnknownFloppyType 122 122 cmp bl, FLOPPY_TYPE_35_ED 123 ja SHORT BootMenuPrint_HardDiskRefreshInformation.output123 ja SHORT .PushAXAndOutput 124 124 125 125 ; Fall to .PrintKnownFloppyType … … 147 147 ;-------------------------------------------------------------------- 148 148 .PrintKnownFloppyType: 149 mov cl, (g_szFddSize - $$) & 0xff150 push cx151 152 mov cl, (g_szFddThreeHalf - $$) & 0xff149 mov al, (g_szFddSize - $$) & 0xff 150 push ax 151 152 mov al, (g_szFddThreeHalf - $$) & 0xff 153 153 cmp bl, FLOPPY_TYPE_525_HD 154 154 ja .ThreeHalf 155 mov cl, (g_szFddFiveQuarter - $$) & 0xff155 mov al, (g_szFddFiveQuarter - $$) & 0xff 156 156 .ThreeHalf: 157 push cx ; "5 1/4" or "3 1/2"157 push ax ; "5 1/4" or "3 1/2" 158 158 159 159 mov al,FloppyTypes.rgbCapacityMultiplier 160 160 mul byte [cs:bx+FloppyTypes.rgbCapacity - 1] ; -1 since 0 is handled above and not in the table 161 162 .PushAXAndOutput: 161 163 push ax 162 164
Note:
See TracChangeset
for help on using the changeset viewer.