summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-01-22 14:35:51 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-01-22 14:36:09 -0800
commit913349589c4071a1096dbfd18600ded56d53d709 (patch)
treea6b98af59490b759db985b4ac5045376a902c817
parente59f1c02623fb0e899d91482e1df418514baf602 (diff)
downloadsyslinux-913349589c4071a1096dbfd18600ded56d53d709.tar.gz
mbr.S: save one more bytesyslinux-3.61-pre3
%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.
-rw-r--r--mbr/mbr.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index f68ed890..304557b7 100644
--- 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