Changeset 180 for trunk/Target/TargetPHP.pas
- Timestamp:
- Aug 26, 2024, 9:15:43 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/TargetPHP.pas
r161 r180 59 59 60 60 AddLine('<?php // ' + ProgramName); 61 AddLine ('');61 AddLine; 62 62 AddLine('$Memory = str_repeat("\0", ' + IntToStr(MemorySize) + ');'); 63 63 AddLine('$Position = 0;'); … … 76 76 cmMultiply: AddLine(GetMemoryCell + ' = chr(ord(' + GetMemoryCell + ') + ord($Memory[$Position]) * ' + IntToStr(FProgram[FProgramIndex].Parameter) + ');'); 77 77 cmLoopStart: begin 78 AddLine('while(' + GetMemoryCell + ' != "\0") {'); 78 AddLine('while(' + GetMemoryCell + ' != "\0")'); 79 AddLine('{'); 79 80 Inc(Indent); 80 81 end;
Note:
See TracChangeset
for help on using the changeset viewer.