165,7 → 165,7 |
{ |
dword brainFuckCode = 0; |
word maxLoop = 1000; |
dword txt = "(print (input \"test:\"))"; |
dword txt = "(set name (input \"Enter you name: \"))(print \"You name \" (get name))"; |
|
buffer = malloc(bufferSize); |
memory = malloc(memoryBrainfuck); |
178,18 → 178,9 |
IF(io.read(I_Param)) |
{ |
code = EAX; |
loop() |
{ |
WHILE(DSBYTE[code] == ' ') code++; |
IF(DSBYTE[code]!='(') BREAK; |
ELSE code++; |
evalLisp(); |
code--; |
IF(DSBYTE[code]!=')') BREAK; |
ELSE code++; |
} |
} |
} |
else |
{ |
consoleInit(); |
199,7 → 190,7 |
con_printf stdcall ("\r\n\r\nEnter code: "); |
con_gets stdcall(buffer, bufferSize); |
code = EAX; |
//code = txt; |
code = txt; |
con_printf stdcall ("Output: "); |
evalLisp(); |
maxLoop--; |