Calculator Community > Axe
Routines
calc84maniac:
How to add/subtract two 32-bit numbers:
--- Code: ---:'This will do AB+CD->AB
:((B+D->B)<D)+A+C->A
:'This will do AB-CD->AB
:A-C-((B-D->B)>=-D)->A
--- End code ---
Note ">=" is greater than or equal token
Quigibo:
Nice! Although you don't need all those parenthesis since order of operations is still just left to right:
:B+D->B<D+A+C->A
:A-C-(B-D->B>=-D)->A
Won't make a difference in the compiled code, but saves some memory in the source.
DJ Omnimaga:
I think I will probably start coding this by using the conventional BASIC operation syntax because I still can't memorize the weird Axe syntax so it's gonna take me a while to get used to when coding x.x
trevmeister66:
--- Quote from: DJ Omnimaga on February 24, 2010, 02:19:06 pm ---I think I will probably start coding this by using the conventional BASIC operation syntax because I still can't memorize the weird Axe syntax so it's gonna take me a while to get used to when coding x.x
--- End quote ---
You could always create your code the conventional BASIC way and then post it here and someone can convert it to "Axe friendly syntax" if you want.
DJ Omnimaga:
I guess that could work too :P, altough if the code is massive some ppl might not want to XD
I want to port WoW to Axe Parser... j/k
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version