Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any way to execute a file (i.e. another ASM or TI-Basic program) from a C program?

asm execute file program ti-basic
0
Posted

Is there any way to execute a file (i.e. another ASM or TI-Basic program) from a C program?

0

There are a lot of methods for doing this. The most obvious method to do this is usage of a function like this one: void progrun(const char *name) { char fname[25]; HANDLE h; strcpy (fname, name); strcat (fname, “()”); push_parse_text (fname); h = HS_popEStack (); TRY NG_execute (h, FALSE); FINALLY HeapFree (h); ENDFINAL } The usage of it is straightforward, for example: progrun (“testprog”); Note that the program you call may throw errors. If you understand this function, you can easily expand it to accept arguments, etc. Principally, using NG_execute you can execute any particular sequence of TI-Basic statements.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123