0 Members and 4 Guests are viewing this topic.
Quote from: happybobjr on September 27, 2010, 03:52:33 pmQuestion: In axe, can you store commands into a program or something like that? or would you have to do t in asm?It's possible with Asm, Axe, or Celtic III/DCS7.
Question: In axe, can you store commands into a program or something like that? or would you have to do t in asm?
GetCalc(PTR,SIZE) Creates an OS variable who's name is pointed to in RAM and makes it Size bytes large. Returns a pointer to the start of data, or zero if there was not enough RAM. Overwrites existing variable, even if it was in archive.
.AXEGetCalc("prgmA",14)->P[D3412B312B3130303FD8413FD43F]->Str1Copy(Str1,P,14)
You can load programs just as you would load variables. Try this code (its not tested but it should work)Code: [Select].AXEGetCalc("prgmA",14)->P[D3412B312B3130303FD8413FD43F]->Str1Copy(Str1,P,14)What it does is create a program with 14 bytes of space, and stores the location of the program into P. the second line contains all of the data for the program. Each token is represented by a number, and all 14 numbers are loaded into the program with the last line.
Quote from: Builderboy on September 27, 2010, 06:33:03 pmYou can load programs just as you would load variables. Try this code (its not tested but it should work)Code: [Select].AXEGetCalc("prgmA",14)->P[D3412B312B3130303FD8413FD43F]->Str1Copy(Str1,P,14)What it does is create a program with 14 bytes of space, and stores the location of the program into P. the second line contains all of the data for the program. Each token is represented by a number, and all 14 numbers are loaded into the program with the last line.I'M not sure what you mean. Do you mean this creates a TI-BASIC program (empty) called prgmP?
.F[DD412B422B433F32438310B04208312BB03109BC420D703441432C0D]->GDB1GetCalc("prgrmQUAD",28)->PCopy(GDB1,P,28)