Browse Source

* slight optimization to the small and medium model startup code

git-svn-id: trunk@28031 -
nickysn 11 years ago
parent
commit
cd6b15f49a
1 changed files with 3 additions and 4 deletions
  1. 3 4
      rtl/msdos/prt0comn.asm

+ 3 - 4
rtl/msdos/prt0comn.asm

@@ -151,10 +151,9 @@ cpu_detect_done:
         mov cx, cs
         mov dx, 1000h  ; 64kb in paragraphs
 %else
-        mov dx, word [dos_psp]
-        mov cx, dx
-        sub dx, dgroup
-        neg dx  ; dx = (ds - psp) in paragraphs
+        mov cx, word [dos_psp]
+        mov dx, dgroup
+        sub dx, cx  ; dx = (ds - psp) in paragraphs
         add dx, 1000h  ; 64kb in paragraphs
 %endif