0 Members and 1 Guest are viewing this topic.
By the way, you can't have non-constant data as part of the Data() command. And that whole inData() optimization only works for comparisons with numbers between 0-255. You can optimize it to this always though:Code: [Select]!If A-EXP1 [16bit and] (A-EXP2)
!If A-EXP1 [16bit and] (A-EXP2)
Quote from: Quigibo on December 29, 2010, 02:14:09 pmBy the way, you can't have non-constant data as part of the Data() command. And that whole inData() optimization only works for comparisons with numbers between 0-255. You can optimize it to this always though:Code: [Select]!If A-EXP1 [16bit and] (A-EXP2)Wait, but you can't use bitwise-and like a logical "and" the same way you can with "or".
!If A-EXP1 + (B-EXP2)
If A=EXP1 + (B=EXP2)
!If A-EXP1 [16-bit or] (B-EXP2)
nWhile -1→A ;Code AEnd
nLbl L →A ;Code!If A-1 Goto LEnd
In case anyone was wondering, here is the smallest loop structure that I know of in Axe.