From 541b994f99496a9fabea5f2d5a2f227ea1c218a8 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 13 Apr 2004 17:16:39 +0000 Subject: [PATCH] Correct another shr ...,4 git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@876 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/kernel.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/kernel.asm b/kernel/kernel.asm index f5c1126..df51bd1 100644 --- a/kernel/kernel.asm +++ b/kernel/kernel.asm @@ -152,8 +152,9 @@ kernel_start: rep movsw ; move HMA_TEXT to higher memory - mov cx,dx ; cx = __InitTextStart wrt HMA_TEXT - shr dx,4 + mov si,dx ; si = __InitTextStart wrt HMA_TEXT + mov cl,4 + shr dx,cl sub ax,dx mov ds,ax ; ds = HMA_TEXT @@ -161,7 +162,7 @@ kernel_start: sub ax,dx mov es,ax ; es = new HMA_TEXT - mov si,cx + mov cx,si ; cx = __InitTextStart wrt HMA_TEXT dec si dec si mov di,si