Ignore:
Timestamp:
Aug 10, 2010, 11:54:18 AM (14 years ago)
Author:
george
Message:

Added support for multiple source files and compilations for multiple modules in Project.pas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/Produce/UProducerAsm8051.pas

    r52 r54  
    2626  end;
    2727
     28  { TProducerAsm8051 }
     29
    2830  TProducerAsm8051 = class(TProducer)
    2931  private
     
    3335    procedure GenerateExpression(Expression: TExpression; LabelPrefix: string);
    3436    procedure GenerateProgram(ProgramBlock: TProgram);
     37    procedure GenerateModule(Module: TModule);
    3538  public
    3639    AssemblyCode: TList; // TList<TAssemblerLine>
    37     procedure Produce; override;
     40    procedure Produce(Module: TModule; ProducedCode: TStringList); override;
    3841    constructor Create;
    3942    destructor Destroy; override;
     
    189192end;
    190193
    191 procedure TProducerAsm8051.Produce;
    192 begin
    193   GenerateProgram(ProgramCode);
     194procedure TProducerAsm8051.GenerateModule(Module: TModule);
     195begin
     196
     197end;
     198
     199procedure TProducerAsm8051.Produce(Module: TModule; ProducedCode: TStringList);
     200begin
     201  GenerateModule(Module);
    194202end;
    195203
Note: See TracChangeset for help on using the changeset viewer.