Changeset 238 for branches/CpuSingleSize/Assembler.pas
- Timestamp:
- Jul 15, 2023, 12:51:15 AM (16 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Assembler.pas
r237 r238 1 unit UAssembler;1 unit Assembler; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, UInstructions, UCpu, Generics.Collections,7 UMemory, UMessages, UParser;6 Classes, SysUtils, Instructions, Cpu, Generics.Collections, 7 Memory, Message, Parser; 8 8 9 9 type … … 36 36 LabelRefs: TList<TLabelRef>; 37 37 Variables: TDictionary<string, Integer>; 38 Message s: TMessages;38 Message: TMessages; 39 39 procedure Error(Text: string; Pos: TPoint); 40 40 procedure Compile(Source: string); … … 95 95 procedure TAssembler.Error(Text: string; Pos: TPoint); 96 96 begin 97 Message s.AddMessage(Text, Pos);97 Message.AddMessage(Text, Pos); 98 98 if Assigned(FOnError) then 99 99 FOnError(Text, Pos); … … 102 102 procedure TAssembler.Compile(Source: string); 103 103 begin 104 Message s.Clear;104 Message.Clear; 105 105 Memory.Size := 0; 106 106 Labels.Clear; … … 319 319 Parser := TParser.Create; 320 320 Parser.OnError := Error; 321 Message s:= TMessages.Create;321 Message := TMessages.Create; 322 322 Memory := TMemory.Create; 323 323 InstructionSet := TInstructionSet.Create; … … 334 334 FreeAndNil(InstructionSet); 335 335 FreeAndNil(Memory); 336 FreeAndNil(Message s);336 FreeAndNil(Message); 337 337 FreeAndNil(Parser); 338 338 inherited;
Note:
See TracChangeset
for help on using the changeset viewer.