From 6cb24a392959e10186cb0bdc9347ef78ecc53882 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 13 Oct 2021 22:55:22 +0200 Subject: [PATCH] * itcpugas unit for Z80 providing gas_regname to fix compilation with -dDEBUG_NODE_XML --- compiler/z80/itcpugas.pas | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 compiler/z80/itcpugas.pas diff --git a/compiler/z80/itcpugas.pas b/compiler/z80/itcpugas.pas new file mode 100644 index 0000000000..1c55cf8fd9 --- /dev/null +++ b/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. +