Changeset 87 for trunk/Target
- Timestamp:
- Aug 29, 2017, 5:38:45 PM (7 years ago)
- Location:
- trunk/Target
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/UTargetC.pas
r86 r87 68 68 AddLine('{'); 69 69 Inc(Indent); 70 AddLine('char Memory[ 30000];');70 AddLine('char Memory[' + IntToStr(MemorySize) + '];'); 71 71 AddLine('int Pos;'); 72 72 AddLine('char ReadChar;'); -
trunk/Target/UTargetDelphi.pas
r86 r87 60 60 AddLine(''); 61 61 AddLine('var'); 62 AddLine(' Memory: array[0.. 30000] of Byte;');62 AddLine(' Memory: array[0..' + IntToStr(MemorySize) + '] of Byte;'); 63 63 AddLine(' Pos: Integer;'); 64 64 AddLine(' ReadChar: Char;'); -
trunk/Target/UTargetFPC.pas
r86 r87 62 62 AddLine('program ' + ProgramName + ';'); 63 63 AddLine('var'); 64 AddLine(' Memory: array[0.. 30000] of Byte;');64 AddLine(' Memory: array[0..' + IntToStr(MemorySize) + '] of Byte;'); 65 65 AddLine(' Pos: Integer;'); 66 66 AddLine(' ReadChar: Char;'); -
trunk/Target/UTargetJava.pas
r86 r87 71 71 AddLine('char ReadChar;'); 72 72 AddLine; 73 AddLine('Memory = new char[ 30000];');73 AddLine('Memory = new char[' + IntToStr(MemorySize) + '];'); 74 74 AddLine('Pos = 0;'); 75 75 FProgramIndex := 0; -
trunk/Target/UTargetPHP.pas
r86 r87 63 63 AddLine('<?php // ' + ProgramName); 64 64 AddLine(''); 65 AddLine('$Memory = str_repeat("\0", 30000);');65 AddLine('$Memory = str_repeat("\0", ' + IntToStr(MemorySize) + ');'); 66 66 AddLine('$Position = 0;'); 67 67 FProgramIndex := 0; -
trunk/Target/UTargetPython.pas
r86 r87 101 101 AddLine(''); 102 102 AddLine('import sys'); 103 AddLine('memory = [0] * 30000');103 AddLine('memory = [0] * ' + IntToStr(MemorySize)); 104 104 AddLine('position = 0'); 105 105 FProgramIndex := 0;
Note:
See TracChangeset
for help on using the changeset viewer.