aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/mbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-07-11 16:39:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-07-11 16:39:25 -0700
commit6723c3226ef2394c2fc52b8b2754181ca578cf33 (patch)
tree726230f7815548cca9ec9ecb0fa8f0b580e2adf2 /mbr/mbr.S
parentea75b2912f47ccfd922a2399fe8a7dfdb793f26a (diff)
downloadsyslinux-6723c3226ef2394c2fc52b8b2754181ca578cf33.tar.gz
syslinux-6723c3226ef2394c2fc52b8b2754181ca578cf33.tar.xz
syslinux-6723c3226ef2394c2fc52b8b2754181ca578cf33.zip
One more MBR byte
Diffstat (limited to 'mbr/mbr.S')
-rw-r--r--mbr/mbr.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/mbr.S b/mbr/mbr.S
index 2756d7d0..50e038ad 100644
--- a/mbr/mbr.S
+++ b/mbr/mbr.S
@@ -122,8 +122,8 @@ read_sector_cbios:
xchgw %dx, %ax
divb (sectors)
movb %al, %dh
- incb %ah
orb %ah, %cl
+ incw %cx /* Sectors are 1-based */
movw $0x0201, %ax
jmp read_common
read_sector_ebios: