Browse Source

* itcpugas unit for Z80 providing gas_regname to fix compilation with -dDEBUG_NODE_XML

florian 3 years ago
parent
commit
6cb24a3929
1 changed files with 41 additions and 0 deletions
  1. 41 0
      compiler/z80/itcpugas.pas

+ 41 - 0
compiler/z80/itcpugas.pas

@@ -0,0 +1,41 @@
+{
+    Copyright (c) 1998-2002 by Florian Klaempfl
+
+    This unit contains a dummy Z80 GAS unit to provide gas_regname
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ ****************************************************************************
+}
+unit itcpugas;
+
+{$i fpcdefs.inc}
+
+interface
+
+    uses
+      cpubase,cgbase;
+
+    function gas_regname(r:Tregister):string;
+
+  implementation
+
+    function gas_regname(r:Tregister):string;
+      begin
+        result:=std_regname(r);
+      end;
+
+end.
+