rax64att.pas 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Carl Eric Codere and Peter Vreman
  4. Does the parsing for the i386 GNU AS styled inline assembler.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. Unit rax64att;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. rax86att;
  23. type
  24. tx8664attreader = class(tx86attreader)
  25. procedure handleopcode;override;
  26. end;
  27. implementation
  28. uses
  29. rabase,systems,rax86,aasmcpu;
  30. procedure tx8664attreader.handleopcode;
  31. var
  32. instr : Tx86Instruction;
  33. begin
  34. instr:=Tx86Instruction.Create(Tx86Operand);
  35. instr.OpOrder:=op_att;
  36. BuildOpcode(instr);
  37. instr.AddReferenceSizes;
  38. instr.SetInstructionOpsize;
  39. {
  40. instr.CheckOperandSizes;
  41. }
  42. instr.ConcatInstruction(curlist);
  43. instr.Free;
  44. end;
  45. const
  46. asmmode_x86_64_gas_info : tasmmodeinfo =
  47. (
  48. id : asmmode_x86_64_gas;
  49. idtxt : 'GAS';
  50. casmreader : tx8664attreader;
  51. );
  52. initialization
  53. RegisterAsmMode(asmmode_x86_64_gas_info);
  54. end.
  55. {
  56. $Log$
  57. Revision 1.1 2004-01-14 23:39:05 florian
  58. * another bunch of x86-64 fixes mainly calling convention and
  59. assembler reader related
  60. }