Explorar o código

* slight optimization to the small and medium model startup code

git-svn-id: trunk@28031 -
nickysn %!s(int64=11) %!d(string=hai) anos
pai
achega
cd6b15f49a
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  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