浏览代码

+ a_call_reg

carl 23 年之前
父节点
当前提交
4be0f8c217
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      compiler/m68k/cgcpu.pas

+ 11 - 2
compiler/m68k/cgcpu.pas

@@ -176,6 +176,12 @@ Implementation
          tmpreg: tregister;
          tmpreg: tregister;
        begin
        begin
          result := false;
          result := false;
+         { The Coldfire and MC68020+ have extended
+           addressing capabilities with a 32-bit
+           displacement.
+         }
+         if (aktoptprocessor <> MC68000) then
+           exit;
          if (ref.base <> R_NO) then
          if (ref.base <> R_NO) then
            begin
            begin
              if (ref.index <> R_NO) and assigned(ref.symbol) then
              if (ref.index <> R_NO) and assigned(ref.symbol) then
@@ -227,7 +233,7 @@ Implementation
        href : treference; 
        href : treference; 
      begin
      begin
        reference_reset_base(href, reg, 0);
        reference_reset_base(href, reg, 0);
-       a_call_ref(href);
+       a_call_ref(list,href);
      end;
      end;
       
       
 
 
@@ -1244,7 +1250,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.9  2002-09-17 18:54:05  jonas
+  Revision 1.10  2002-09-22 14:15:31  carl
+    + a_call_reg
+
+  Revision 1.9  2002/09/17 18:54:05  jonas
     * a_load_reg_reg() now has two size parameters: source and dest. This
     * a_load_reg_reg() now has two size parameters: source and dest. This
       allows some optimizations on architectures that don't encode the
       allows some optimizations on architectures that don't encode the
       register size in the register name.
       register size in the register name.