summaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
Diffstat (limited to 'stage1')
-rw-r--r--stage1/main.asm6
1 files changed, 4 insertions, 2 deletions
diff --git a/stage1/main.asm b/stage1/main.asm
index 33264b0..fcf7ed3 100644
--- a/stage1/main.asm
+++ b/stage1/main.asm
@@ -105,10 +105,12 @@ load_stages:
jne .fail
; increase buffer pointer
- add bx, 512
+ mov ax, es
+ add ax, 512/0x10
+ mov es, ax
; check if finished
- cmp bx, KSIZE
+ cmp ax, (KSTART+KSIZE)/0x10
jae .success
; next sector