0 Members and 1 Guest are viewing this topic.
(L3+offset) and 2 to the power of bit_I_want
EXP1eEXP2Gets the expression2-th bit of the 8-bit number in expression1. Unlike assembly, the leftmost bit (high order) is bit 0 and the rightmost bit (low order) is bit 7. The bit checking is modular. That's the Euler's constant "e".
9->{L1+1} .In bits, 0000 1001For(A,0,7) Text(A*8,10,Ae{L1+1}>Dec)End
double Pow(double number,double power){for (power;power>0;power--) number*=number;return number}
A function to get the power of a number would be pretty easy to make, if there isn't one handy.Here's a C++ function; I don't know Axe:Code: [Select]double Pow(double number,double power){for (power;power>0;power--) number*=number;return number}
double Pow(double number,double power){result = 1for (power;power>0;power>>=1) { if (power % 2) result *= number; number*=number;}return result;}
Lbl POW1→r3r2While 1If ^2r3*r1→r3Endr1²→r1End!If r2/2→r2Return r3