Browse Source

+ added const sets for the i8086 memory models based on the code and data model type

git-svn-id: trunk@24812 -
nickysn 12 năm trước cách đây
mục cha
commit
9eecec4910
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      compiler/globtype.pas

+ 5 - 0
compiler/globtype.pas

@@ -671,6 +671,11 @@ interface
 
     type
       tx86memorymodel = (mm_tiny,mm_small,mm_medium,mm_compact,mm_large,mm_huge);
+    const
+      x86_near_code_models = [mm_tiny,mm_small,mm_compact];
+      x86_far_code_models = [mm_medium,mm_large,mm_huge];
+      x86_near_data_models = [mm_tiny,mm_small,mm_medium];
+      x86_far_data_models = [mm_compact,mm_large,mm_huge];
 
   { hide Sysutils.ExecuteProcess in units using this one after SysUtils}
   const