0 Members and 6 Guests are viewing this topic.
:If -1 and 0:Disp "Hi!":End
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.
I have two very minor bugs, and they might not even apply anymore, since I'm still using Axe 0.2.6 But just to let you know, AND logic between 0 and -1 seems to be true. In other words:Code: (Axe BASIC) [Select]:If -1 and 0:Disp "Hi!":Endwill always display "Hi!".
Oh, I know why it's happening." and " is an 8-bit AND only. It only AND's the LSB, putting the MSB of the first argument into the MSB of the answer.So "-1 and 0" simplifies to "EFFFF and 0", which simplifies to "EFF00", since only the LSB is operated upon.What you need to do is use the 16-bit version, which, for AND, is the statplot dot. (Looks like a raised single pixel, pretty much).
asm(FALL1
asm(FALL1 Done
Sin(A????????rref(