Changeset 255 in xtideuniversalbios


Ignore:
Timestamp:
Feb 18, 2012, 11:21:30 PM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Bug fix in BootMenuPrint, introduced in r241, where floppy disk information was not being properly displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r254 r255  
    115115    call    FloppyDrive_GetType                         ; Get Floppy Drive type to BX
    116116
    117     mov     cx, g_szFddSizeOr                           ; .PrintXTFloppyType
     117    mov     ax, g_szFddSizeOr                           ; .PrintXTFloppyType
    118118    test    bx, bx                                      ; Two possibilities? (FLOPPY_TYPE_525_OR_35_DD)     
    119     jz      SHORT BootMenuPrint_HardDiskRefreshInformation.output
    120 
    121     mov     cl, (g_szFddUnknown - $$) & 0xff            ; .PrintUnknownFloppyType
     119    jz      SHORT .PushAXAndOutput
     120
     121    mov     al, (g_szFddUnknown - $$) & 0xff            ; .PrintUnknownFloppyType
    122122    cmp     bl, FLOPPY_TYPE_35_ED
    123     ja      SHORT BootMenuPrint_HardDiskRefreshInformation.output
     123    ja      SHORT .PushAXAndOutput
    124124       
    125125    ; Fall to .PrintKnownFloppyType
     
    147147;--------------------------------------------------------------------
    148148.PrintKnownFloppyType:
    149     mov     cl, (g_szFddSize - $$) & 0xff
    150     push    cx
    151        
    152     mov     cl, (g_szFddThreeHalf - $$) & 0xff
     149    mov     al, (g_szFddSize - $$) & 0xff
     150    push    ax
     151       
     152    mov     al, (g_szFddThreeHalf - $$) & 0xff
    153153    cmp     bl, FLOPPY_TYPE_525_HD
    154154    ja      .ThreeHalf
    155     mov     cl, (g_szFddFiveQuarter - $$) & 0xff
     155    mov     al, (g_szFddFiveQuarter - $$) & 0xff
    156156.ThreeHalf:     
    157     push    cx                                          ; "5 1/4" or "3 1/2"
     157    push    ax                                          ; "5 1/4" or "3 1/2"
    158158
    159159    mov     al,FloppyTypes.rgbCapacityMultiplier
    160160    mul     byte [cs:bx+FloppyTypes.rgbCapacity - 1]    ; -1 since 0 is handled above and not in the table
     161
     162.PushAXAndOutput:                   
    161163    push    ax
    162164
Note: See TracChangeset for help on using the changeset viewer.