Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: ACagliano on April 01, 2011, 10:03:45 am

Title: Is it Possible?
Post by: ACagliano on April 01, 2011, 10:03:45 am
Is it possible to make the calculator run part of an app (like a specific subroutine) when it turns on? Is it possible to do this in Axe? Assembly? How?
Title: Re: Is it Possible?
Post by: Compynerd255 on April 01, 2011, 10:33:55 am
It has something to do with the OFFSCRPT appvar. When the calculator turns on and encounters this variable, it will run whatever is in it, which will allow you to run a program, app, or whatever. I don't know exactly how it works, though.
Title: Re: Is it Possible?
Post by: Ashbad on April 01, 2011, 01:18:31 pm
well, not exactly.  I can't explain the entire technical process, but it's more than just an appvar named that.  You need to write a program in assembly (possibly axe, though idk) that basically has a hook that detects when the calc is turned on - when it is, it runs the script.
Title: Re: Is it Possible?
Post by: aeTIos on April 01, 2011, 02:59:40 pm
You should actually ask KermM for some assembly code.
Title: Re: Is it Possible?
Post by: Compynerd255 on April 01, 2011, 06:42:29 pm
Yeah, MirageOS, DoorsCS, zStart, StartUp, and a few other programs employ this method. Ask their authors.

EDIT: Or better yet, dissassemble the OFFSCRPT appvar after creating one with any of those programs.
Title: Re: Is it Possible?
Post by: souvik1997 on April 01, 2011, 07:47:12 pm
This: http://ourl.ca/6150
Title: Re: Is it Possible?
Post by: Deep Toaster on April 01, 2011, 08:34:04 pm
It's possible. Create an OFFSCRPT that finds the application, switches to that page, then jumps to the label you want (basically going into the app without "actually" executing it).

You'll have to use ASM, of course, but it shouldn't be too messy.