projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e59f1c0
)
mbr.S: save one more byte
syslinux-3.61-pre3
author
H. Peter Anvin
<hpa@zytor.com>
Tue, 22 Jan 2008 22:35:51 +0000
(14:35 -0800)
committer
H. 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
patch
|
blob
|
history
diff --git
a/mbr/mbr.S
b/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 */
- mov
w $0x4100, %ax
+ mov
b $0x41, %ah /* %al == 0 already */
movw $0x55aa, %bx
xorw %cx, %cx
xorb %dh, %dh