04-19-2010, 09:40 PM
boriel Wrote:The same applies to the other boolean operations. If you REALLY need 0 and 1, you can convert a boolean result using SGN:
Thank you for the detailed explanation (I love Z80 assembler). In the future I'll check the boolean operations without "Sinclair Basic assumptions"
boriel Wrote:Maybe another --strict-boolean flag? So (x == y) always = [0, 1] (Slower but compatible)
I see there are many little but important differences with Sinclair Basic. Some of them are not evident. I think only very simple programs, like the provided examples, can be ported without modifications. Some compatibility options would be great, to let more complex programs to be compiled without rewriting. I am not interested in compiling Sinclar Basic code, but in writing ZX Basic, though I'm learning the language by porting a bit complex Sinclair Basic program of mine. That's a good and fun way to learn.
Marcos Cruz
http://programandala.net
http://programandala.net