Selaa lähdekoodia

- do not emit a stack segment in the tiny memory model
- rm the reference to the top of the stack segment from the startup code in tiny
model

git-svn-id: trunk@27956 -

nickysn 11 vuotta sitten
vanhempi
commit
8ad63788c7
2 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 2 1
      compiler/i8086/n8086util.pas
  2. 5 3
      rtl/msdos/prt0comn.asm

+ 2 - 1
compiler/i8086/n8086util.pas

@@ -47,7 +47,8 @@ implementation
   class procedure ti8086nodeutils.InsertMemorySizes;
     begin
       inherited;
-      InsertStackSegment;
+      if current_settings.x86memorymodel<>mm_tiny then
+        InsertStackSegment;
     end;
 
 

+ 5 - 3
rtl/msdos/prt0comn.asm

@@ -53,11 +53,13 @@
         extern __nearheap_start
         extern __nearheap_end
 
-%ifdef __FAR_DATA__
+%ifndef __TINY__
+    %ifdef __FAR_DATA__
         extern ___stack
-%endif
-%ifdef __NEAR_DATA__
+    %endif
+    %ifdef __NEAR_DATA__
         extern ___stacktop
+    %endif
 %endif
 
         extern __SaveInt00