0 Members and 3 Guests are viewing this topic.
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.
Feature Request:TI-Basic has the ability to transfer control to another executable, then return when done. Axe should be able to do the same. Maybe, use the command Get( or something, where the commandGet(prgmAAA)would cause the executable to transfer execution to the asm program AAA, then return to the main.
.PROGRAMClrHomeDisp "Hello "sub(A)Disp iReturnLbl AprgmINCLUDE
..Disp "world!"Return
@LordConupiter: Not 2 calc data sending. I'm talking about having the ability to run other programs from an Axe compiled program.
Quote from: ACagliano on October 05, 2010, 10:22:27 am@LordConupiter: Not 2 calc data sending. I'm talking about having the ability to run other programs from an Axe compiled program.did you mean that! sorry, I misinterpreted your Post, for U suggested to use the Get command, and that's already used for data transfer between 2 calcs.@Runer: how did you do that! those two code block next to each other?
[table][tr][td]Put one code block in here[/td][td] [/td][td]Put another code block in here[/td][/tr][/table]
Quote from: ACagliano on October 05, 2010, 09:56:56 amFeature Request:TI-Basic has the ability to transfer control to another executable, then return when done. Axe should be able to do the same. Maybe, use the command Get( or something, where the commandGet(prgmAAA)would cause the executable to transfer execution to the asm program AAA, then return to the main.If you want to call another Axe program, unless you desperately need them to be two separate compiled programs, this can already be achieved with included programs. Just call it as a subroutine in your main program without a Return, like this:Code: (Your main program) [Select].PROGRAMClrHomeDisp "Hello "sub(A)Disp iReturnLbl AprgmINCLUDE Code: (prgmINCLUDE) [Select]..Disp "world!"Return
Disp "Hello"prgmZCLRHOMEDisp "Goodbye"
ExecprgmTEST
ExecProg("prgmTEST".or"prgmTEST"->Str1ExecProg(Str1
Pt-Command()→BUFF Performs any of the Pt-On(), Pt-Off(), or Pt-change() routines to an arbitrary buffer of your choice.
I think this is very difficult to accomplish. In order to run a program, it must be copied into 959C. Unfortunately that is where the current program already is, so you would need a 3rd piece of code that would copy the original program back into its original RAM space, copy the second program into 959C, PUSH a piece of its own code onto the stack so that when the program exits, it is able to copy the original program back onto 959C