Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: ACagliano on October 05, 2010, 01:18:31 am
-
Is it possible to, in a compiled Axe executable, transfer control to another asm program or compiled Axe program and then return, like you can in TI-Basic?
-
Not as far as I know.
I tried using the following to do so, but I failed.
.MYTEST
1->{25+L4
prgmCOMPPRG
Output(0,1,{25+L4}>Dec)
This program would multiply {25+L4} by 2, but axe gives me a bad program error.
(COMPPRG ofc was already compiled by axe itself, but I don't think that matters much.)
-
You can only include source files, not compiled programs. It does matter :P
Try it again, see if it does anything. If you really need to include a binary file, you need to use Asm(
-
is it really a posibility to do this:?
Asm(prgmWHATEVER)
It would be very handy in case it isn't possible jet!
-
Asm( is already used to run hex within a program. There would need to be a different command for it.
-
Asm( is already used to run hex within a program. There would need to be a different command for it.
If you need a different token, how about AsmPrgm? Although you could always use Asm() for this too, and just check if a program name or hex is inside the parentheses and parse it accordingly.
-
yes, when you do a normal Asm( command, the hex will never start with prgm or appv or whatever. perhaps it would be a better idea to use Asm(HEX) or Asm({PTR}r)? since otherwise the Asm routine would be much larger, cuz it would have to get the starting of the prgm on the calc, and this way it is much more flexible.