memdisk: Restore DL for INT 13h, AH=15h, DL=floppy syslinux-3.84-pre4
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Fri, 20 Nov 2009 01:20:33 +0000 (20:20 -0500)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 20 Nov 2009 01:54:56 +0000 (17:54 -0800)
commita59acfdc096be06d1319ee4010eea8abc7b9824e
treebb4647b3ae1ccbfd8ea2f5d6ea073df4ee88798a
parentd16e510b31b54969d384b70f2ec83a24dae0b448
memdisk: Restore DL for INT 13h, AH=15h, DL=floppy

At least PC-DOS requires this to avoid an infinite loop; the DL we
restore is not the same DL that we call the underlying BIOS with, but
rather the original one (before the decrement.)  PC-DOS loops over all
the floppies and relies on the call preserving DL in order to advance
the loop.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
memdisk/memdisk.inc