I was emitting illegal IL for branching. The TI Basic relationsl expressions leave...
authorMichael Welch <michaelgwelch@gmail.com>
Thu, 28 Dec 2006 23:01:11 +0000 (23:01 +0000)
committerMichael Welch <michaelgwelch@gmail.com>
Thu, 28 Dec 2006 23:01:11 +0000 (23:01 +0000)
commit96907eef1a70751ba024795a4c0383218391f441
tree5db629770a473c4146ae9deedf81ba92ce44d673
parentec99e2139c2abe3bf98071016de33e3871298f6f
I was emitting illegal IL for branching. The TI Basic relationsl expressions leave a double on the stack. I was using Brtrue and Brfalse which are defined to only work with int values. .NET must be more forgiving. It allowed such instructions to work (correctly, it seemed). However, these instructions did not work on mono.
mbasic/SyntaxTree/For.cs
mbasic/SyntaxTree/If.cs