2
$Id: itcpugas.pas,v 1.2 2004/01/12 16:39:41 peter Exp $
3
Copyright (c) 1998-2002 by Mazen NEIFER
5
This unit contains the PowerPC GAS instruction tables
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
****************************************************************************
33
gas_op2str : array[tasmop] of string[14] = ({$INCLUDE strinst.inc});
35
function gas_regnum_search(const s:string):Tregister;
36
function gas_regname(r:Tregister):string;
45
gas_regname_table : array[tregisterindex] of string[7] = (
49
gas_regname_index : array[tregisterindex] of tregisterindex = (
54
function findreg_by_gasname(const s:string):tregisterindex;
60
i:=regnumber_count_bsstart;
62
if (p+i<=high(tregisterindex)) and (gas_regname_table[gas_regname_index[p+i]]<=s) then
66
if gas_regname_table[gas_regname_index[p]]=s then
67
findreg_by_gasname:=gas_regname_index[p]
69
findreg_by_gasname:=0;
73
function gas_regnum_search(const s:string):Tregister;
75
result:=regnumber_table[findreg_by_gasname(s)];
79
function gas_regname(r:Tregister):string;
83
{ Double uses the same table as single }
84
if getsubreg(r)=R_SUBFD then
86
p:=findreg_by_number(r);
88
result:=gas_regname_table[p]
90
result:=generic_regname(r);
95
$Log: itcpugas.pas,v $
96
Revision 1.2 2004/01/12 16:39:41 peter
97
* sparc updates, mostly float related
99
Revision 1.1 2003/12/08 13:03:06 mazen
100
+ support for native sparc assembler reader
102
Revision 1.2 2003/11/15 19:00:10 florian
103
* fixed ppc assembler reader
105
Revision 1.1 2003/11/12 16:05:40 florian
106
* assembler readers OOPed
107
+ typed currency constants
108
+ typed 128 bit float constants if the CPU supports it
110
Revision 1.2 2003/10/01 20:34:49 peter
111
* procinfo unit contains tprocinfo
112
* cginfo renamed to cgbase
113
* moved cgmessage to verbose
114
* fixed ppc and sparc compiles
116
Revision 1.1 2003/09/03 19:35:24 peter
117
* powerpc compiles again