Correct another shr ...,4

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@876 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-04-13 17:16:39 +00:00
parent c899541e2e
commit 541b994f99
1 changed files with 4 additions and 3 deletions

View File

@ -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