Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Xeda112358 on March 03, 2011, 04:05:44 pm

Title: EXEC: Executing Appvars in BASIC
Post by: Xeda112358 on March 03, 2011, 04:05:44 pm
After a request from aeTIos for a code to execute BASIC programs from an Axe program, I decided to make this for BASIC programmers... This will let you store the name of a program or even an appvar in Ans and execute it as a BASIC program. This is great if certain situations require certain sub programs-- especially if you decide to store your sub programs to appvars!

On top of that, if the program or appvar is archived, instead of throwing an error, this program simply unarchives the var and executes it.
Here is an example showing an appvar being executed.
Title: Re: EXEC: Executing Appvars in BASIC
Post by: ferox on March 03, 2011, 04:12:04 pm
that is great! i always hated subprogs, but this will most certainly help.
surely on what i am working on now.
Title: Re: EXEC: Executing Appvars in BASIC
Post by: DJ Omnimaga on March 04, 2011, 02:22:15 am
Wow that is great! If it wasn't for Asm() being slow, I could almost convert some of my old games to this. :D

Are you planning to put this in Omni and ticalc.org archives?
Title: Re: EXEC: Executing Appvars in BASIC
Post by: Xeda112358 on March 04, 2011, 02:24:31 am
I'm thinking I will upload it to TICalc and then during my week off I will make a program that kind of combines CopyProg, GetName, and EXEC along with a few other functions. That I will probably upload here :)
Title: Re: EXEC: Executing Appvars in BASIC
Post by: DJ Omnimaga on March 04, 2011, 02:26:12 am
Ah ok cool. A merge would be nice so people don't have too many ASM sub-programs. :D
Title: Re: EXEC: Executing Appvars in BASIC
Post by: TIfanx1999 on March 04, 2011, 09:39:19 am
Very cool Xeda!