mirror of https://github.com/FDOS/kernel.git
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:
parent
c899541e2e
commit
541b994f99
|
@ -152,8 +152,9 @@ kernel_start:
|
||||||
rep movsw
|
rep movsw
|
||||||
|
|
||||||
; move HMA_TEXT to higher memory
|
; move HMA_TEXT to higher memory
|
||||||
mov cx,dx ; cx = __InitTextStart wrt HMA_TEXT
|
mov si,dx ; si = __InitTextStart wrt HMA_TEXT
|
||||||
shr dx,4
|
mov cl,4
|
||||||
|
shr dx,cl
|
||||||
|
|
||||||
sub ax,dx
|
sub ax,dx
|
||||||
mov ds,ax ; ds = HMA_TEXT
|
mov ds,ax ; ds = HMA_TEXT
|
||||||
|
@ -161,7 +162,7 @@ kernel_start:
|
||||||
sub ax,dx
|
sub ax,dx
|
||||||
mov es,ax ; es = new HMA_TEXT
|
mov es,ax ; es = new HMA_TEXT
|
||||||
|
|
||||||
mov si,cx
|
mov cx,si ; cx = __InitTextStart wrt HMA_TEXT
|
||||||
dec si
|
dec si
|
||||||
dec si
|
dec si
|
||||||
mov di,si
|
mov di,si
|
||||||
|
|
Loading…
Reference in New Issue