March 2014 update

This commit is contained in:
Ingy döt Net 2014-04-02 16:56:35 +00:00
parent 09687c4926
commit a25938f123
1846 changed files with 21876 additions and 5203 deletions

View file

@ -13,7 +13,7 @@ const proc: snusp (in string: sourceCode, in integer: memSize, inout file: input
var integer: row is 0;
begin
instructions := split(sourceCode, "\n");
memory := memSize times '\0\';
memory := memSize times '\0;';
for key row range instructions do
if pos(instructions[row], '$') <> 0 then
@ -39,7 +39,7 @@ const proc: snusp (in string: sourceCode, in integer: memSize, inout file: input
columnDir := helpDir;
when {'!'}: instrPtrRow +:= rowDir;
instrPtrColumn +:= columnDir;
when {'?'}: if memory[dataPointer] = '\0\' then
when {'?'}: if memory[dataPointer] = '\0;' then
instrPtrRow +:= rowDir;
instrPtrColumn +:= columnDir;
end if;