271
Axe / Re: Axe Programming
« on: May 18, 2013, 12:15:10 pm »
the first thing I see is in this part of code :
if you do that, then then adresse of the var will store to the ram at x and y adresse
but if you don't define this var, it can do ram clear or data corruption if they are store where there should'nt be store
use this instead :
this will store the adresse of the os' variable into a defined place locate in the compiled prog
the second thing I see is :
in AXE, this will just do a comparaison. I suppose it should be
And why do you use this :
because with this code, you do a pxl-on at the pos (adresse os X)+Z,(adresse os Y)+θ
and in fact, why are you using os-vars ? (varX,varY) ? As I know, they don't even have the same format than axe var...
Code: [Select]
GetCalc("uX")→{X}{^r}
GetCalc("uY")→{Y}{^r}
if you do that, then then adresse of the var will store to the ram at x and y adresse
but if you don't define this var, it can do ram clear or data corruption if they are store where there should'nt be store
use this instead :
Code: [Select]
Buff(2)->°X
Buff(2)->°Y
GetCalc("uX")->{°X}^r
GetCalc("uY")->{°Y}^r
this will store the adresse of the os' variable into a defined place locate in the compiled prog
the second thing I see is :
Code: [Select]
length(A)=L
in AXE, this will just do a comparaison. I suppose it should be
Code: [Select]
length(A)->L
And why do you use this :
Code: [Select]
Pxl-On({X}{^r}+Z,{Y}{^r}+θ
because with this code, you do a pxl-on at the pos (adresse os X)+Z,(adresse os Y)+θ
and in fact, why are you using os-vars ? (varX,varY) ? As I know, they don't even have the same format than axe var...