0 Members and 3 Guests are viewing this topic.
Well, /2 is optimized and so is /256. /4 is not since its 8 bytes. A load and call to the subroutine is only 6. If you want a speed optimized command instead of a size one, you can just do /2/2 and chain them for higher powers of 2.
================================================List of expressions with automatic optimizations================================================Expression______Bytes___________+VAR 5+CONST 4+1 1+2 2+3 3+256 1-VAR 7-CONST 4-1 1-2 2-3 3-256 1*VAR 7 + sub*CONST 6 + sub*2 1*3 4*4 2*5 5*6 5*7 6*8 3*9 6*10 6*12 6*16 4*32 5*64 6*256 3/VAR 7 + sub/CONST 6 + sub/2 4/128 5/256 3^VAR 7 + sub^CONST 6 + sub^2 5^4 6^8 6^16 6^32 6^64 6^128 4^256 2=VAR 12=CONST 11=SHORT 10=0 8=1 8=/=VAR 12=/=CONST 11=/=SHORT 10=/=0 7=/=1 8SHORT means less than 256 bytesCONST means any size=/= is a "not equal sign"