mbr.S: save one more byte syslinux-3.61-pre3
authorH. Peter Anvin <hpa@zytor.com>
Tue, 22 Jan 2008 22:35:51 +0000 (14:35 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 22 Jan 2008 22:36:09 +0000 (14:36 -0800)
%ax is set to zero at the top; we then set it to 0x4100, so we only
need to change %ah, not all of %ax.

mbr/mbr.S

index f68ed89..304557b 100644 (file)
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -68,7 +68,7 @@ _start:
 next:
        /* Check to see if we have EBIOS */
        pushw   %dx             /* drive number */
-       movw    $0x4100, %ax
+       movb    $0x41, %ah      /* %al == 0 already */
        movw    $0x55aa, %bx
        xorw    %cx, %cx
        xorb    %dh, %dh