From 2aa4789bfc0071cdcd7f7d94e6e29a1d467d64d0 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 13 Apr 2004 10:58:06 +0000 Subject: [PATCH] (From Arkady) Avoid "shr cx,4" (it doesn't work on the 8088) git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@869 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 21f399f..9c33093 100644 --- a/kernel/kernel.asm +++ b/kernel/kernel.asm @@ -137,9 +137,10 @@ kernel_start: mov ax,cs mov dx,__InitTextStart wrt HMA_TEXT %ifdef WATCOM - mov cx,dx - shr cx,4 - add ax,cx + mov si,dx + mov cl,4 + shr si,cl + add ax,si %endif mov ds,ax mov cx,-2 + init_end wrt INIT_TEXT