Changeset 14 for branches/DelphiToC/UAssemblerSource.pas
- Timestamp:
- Apr 9, 2009, 11:04:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/UAssemblerSource.pas
r13 r14 25 25 26 26 TAssemblerProducer = class(TCodeProducer) 27 AssemblyCode: TList; // TList<TAssemblerLine>28 destructor Destroy; override;29 27 private 30 28 procedure AddInstruction(LabelName, Instruction, Operand1, … … 33 31 procedure GenerateExpression(Expression: TExpression; LabelPrefix: string); 34 32 procedure GenerateProgram(ProgramBlock: TProgram); 33 public 34 AssemblyCode: TList; // TList<TAssemblerLine> 35 procedure Produce; override; 36 constructor Create; 37 destructor Destroy; override; 35 38 end; 36 39 … … 95 98 end; 96 99 *) 100 101 constructor TAssemblerProducer.Create; 102 begin 103 AssemblyCode := TList.Create; 104 end; 97 105 98 106 destructor TAssemblerProducer.Destroy; … … 177 185 end; 178 186 179 180 187 procedure TAssemblerProducer.Produce; 188 begin 189 inherited; 190 GenerateProgram(ProgramCode); 191 end; 181 192 182 193 end.
Note:
See TracChangeset
for help on using the changeset viewer.