rasm.pas 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.2 2004-06-20 08:55:30 florian
  58. * logs truncated
  59. }