Changeset 126 for trunk/Target/UTargetCSharp.pas
- Timestamp:
- Jan 14, 2022, 7:13:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/UTargetCSharp.pas
r125 r126 75 75 AddLine('Pos = 0;'); 76 76 FProgramIndex := 0; 77 while (FProgramIndex < Length(FProgram))do begin77 while FProgramIndex < FProgram.Count do begin 78 78 case FProgram[FProgramIndex].Command of 79 79 cmPointerInc: AddLine('Pos += ' + IntToStr(FProgram[FProgramIndex].Parameter) + ';'); … … 84 84 cmInput: AddLine(GetMemoryCell + ' = (int)Console.ReadKey().KeyChar;'); 85 85 cmSet: AddLine(GetMemoryCell + ' = ' + IntToStr(FProgram[FProgramIndex].Parameter) + ';'); 86 cmMultip y: begin86 cmMultiply: begin 87 87 if FProgram[FProgramIndex].Parameter = 1 then 88 88 AddLine(GetMemoryCell + ' += Memory[Pos];')
Note:
See TracChangeset
for help on using the changeset viewer.