rasm.pas 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. $Id$
  3. Copyright (c) 1998-2003 by Peter Vreman, Florian Klaempfl and Carl Eric Codere
  4. Basic stuff for assembler readers
  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 rasm;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. cclasses,
  23. rabase,
  24. aasmtai,
  25. systems,
  26. cpubase,
  27. cgbase;
  28. type
  29. tasmreader = class(tbaseasmreader)
  30. firsttoken : boolean;
  31. _asmsorted : boolean;
  32. curlist : TAAsmoutput;
  33. c : char;
  34. actasmpattern : string;
  35. actopcode : tasmop;
  36. actasmregister : tregister;
  37. actcondition : tasmcond;
  38. iasmops : tdictionary;
  39. constructor create;override;
  40. destructor destroy;override;
  41. end;
  42. implementation
  43. constructor tasmreader.create;
  44. begin
  45. inherited create;
  46. firsttoken:=true;
  47. end;
  48. destructor tasmreader.destroy;
  49. begin
  50. if assigned(iasmops) then
  51. iasmops.Free;
  52. inherited destroy;
  53. end;
  54. end.
  55. {
  56. $Log$
  57. Revision 1.1 2003-11-12 16:05:39 florian
  58. * assembler readers OOPed
  59. + typed currency constants
  60. + typed 128 bit float constants if the CPU supports it
  61. }