Author Topic: EXEC: Executing Appvars in BASIC  (Read 2985 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
EXEC: Executing Appvars in BASIC
« 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.

Offline ferox

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +3/-0
    • View Profile
Re: EXEC: Executing Appvars in BASIC
« Reply #1 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.
on hold:

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: EXEC: Executing Appvars in BASIC
« Reply #2 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?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: EXEC: Executing Appvars in BASIC
« Reply #3 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 :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: EXEC: Executing Appvars in BASIC
« Reply #4 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

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: EXEC: Executing Appvars in BASIC
« Reply #5 on: March 04, 2011, 09:39:19 am »
Very cool Xeda!