Having problems with scripting using LoLo 2.05 and 2.06. I need to read several registers in memory and then execute a different lolo string. However, even more fundamental operations don't work.
losh> bit12 = 0; sum2 = 0; if $bit12 echo non-zero; sum2 = 1; else echo zero; endif; echo $sum2
zero
1 <---------- should be 0!
losh> bit12 = 1; sum2 = 0; if $bit12 echo non-zero; sum2 = 1; else echo zero; endif; echo $sum2
non-zero
1
What operations are allowed inside an if-then-else? Can I nest if- statements?
Also, the method suggested in
http://www.logicpd.com/su.../viewtopic.php?t=991 does not work
losh> if ( $? == 0 )
error: parser: syntax error
error: parser: syntax error
error: parser: syntax error
error: parser: syntax error
Thanks,
Gary