Changeset 260 in xtideuniversalbios


Ignore:
Timestamp:
Feb 23, 2012, 6:10:13 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Implemented function int13h/05h (floppy disk format track), that simply returns success, allowing emulated serial floppies to be formatted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm

    r258 r260  
    5656    jmp     [cs:bx+g_rgwEbiosFunctionJumpTable]
    5757%endif
     58
    5859
    5960;--------------------------------------------------------------------
     
    114115%endif
    115116
     117%ifdef MODULE_SERIAL_FLOPPY
     118;--------------------------------------------------------------------
     119; Int13h_ReturnSuccessForFloppy
     120;
     121; Some operations, such as format of a floppy disk track, should just
     122; return success, while for hard disks it should be treated as unsupported.
     123;--------------------------------------------------------------------
     124ALIGN JUMP_ALIGN
     125Int13h_ReturnSuccessForFloppy:
     126    test    dl, dl
     127    js      short Int13h_UnsupportedFunction
     128    mov     ah, 0
     129    jmp     short Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
     130%endif
    116131
    117132;--------------------------------------------------------------------
     
    249264    dw  AH3h_HandlerForWriteDiskSectors                 ; 03h, Write Disk Sectors (All)
    250265    dw  AH4h_HandlerForVerifyDiskSectors                ; 04h, Verify Disk Sectors (All)
     266%ifdef MODULE_SERIAL_FLOPPY
     267    dw  Int13h_ReturnSuccessForFloppy                   ; 05h, Format Disk Track (XT, AT, EISA)
     268%else
    251269    dw  Int13h_UnsupportedFunction                      ; 05h, Format Disk Track (XT, AT, EISA)
     270%endif
    252271    dw  Int13h_UnsupportedFunction                      ; 06h, Format Disk Track with Bad Sectors (XT)
    253272    dw  Int13h_UnsupportedFunction                      ; 07h, Format Multiple Cylinders (XT)
Note: See TracChangeset for help on using the changeset viewer.