Author Topic: Axe and OFFSCRPT  (Read 10743 times)

0 Members and 1 Guest are viewing this topic.

souvik1997

  • Guest
Axe and OFFSCRPT
« on: June 20, 2010, 10:07:27 am »
I have two questions

How does OFFSCRPT work?

How would I use Axe to modify OFFSCRPT?

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: Axe and OFFSCRPT
« Reply #1 on: June 20, 2010, 11:22:18 am »
What is OFFSCRPT? Could you elaborate?

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Axe and OFFSCRPT
« Reply #2 on: June 20, 2010, 01:40:35 pm »
OFFSCRPT is an appvar used by the OS to launch a program/app at startup. DCS uses it too. I have no idea about how it works though.
Former Coder of Tomorrow


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: Axe and OFFSCRPT
« Reply #3 on: June 20, 2010, 02:49:34 pm »
Aaah ok. I never heard of it. I never saw it on my calc before.

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Axe and OFFSCRPT
« Reply #4 on: June 20, 2010, 04:47:10 pm »
I have two questions

How does OFFSCRPT work?

How would I use Axe to modify OFFSCRPT?
I do not know where you can find documentation of OFFSCRPT but unless someone already knows and tells you, you will have to disassemble some code.
Also try a search on UnitedTI forum because I think I read a topic about it but I don't think it had details of the appvar content.
I don't know exactly how it works but it can have vectors (address that directs to code of the TIOS) or some assembly code (doubt it).

Axe has or will have commands to modify appsvars so yes, you can use Axe Parser to edit it if it is in RAM. Or if it is archived, try to unarchive with some other command. (check Axe documentation)
Make sure you know what you are doing because it may crash your calculator on startup.

Aaah ok. I never heard of it. I never saw it on my calc before.
I think I had it on my calc because I used a APPS from TI that could edit your startup.
« Last Edit: June 20, 2010, 04:49:25 pm by Galandros »
Hobbing in calculator projects.

souvik1997

  • Guest
Re: Axe and OFFSCRPT
« Reply #5 on: June 20, 2010, 07:19:27 pm »
Ok. I will check out the exisring OFFSCRPT I have on my calculator.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Axe and OFFSCRPT
« Reply #6 on: June 20, 2010, 11:53:24 pm »
if only the calc could be hacked so that the OS could run OFFSCRPT from archive (cuz, if you archive it, the calc does not run the specified prgm on startup) and if OFFSCRPT could be made to check if the specified prgm is archived and if it is, unarchive it. Thats what i hate: progs set to run on startup must be in RAM, and if you crash, OFFSCRPT is reset.

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: Axe and OFFSCRPT
« Reply #7 on: June 20, 2010, 11:54:31 pm »
Btw I don't really remember having that on my calc before, even when I was using Startup. Was it added in later versions of Startup (after 2002)?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe and OFFSCRPT
« Reply #8 on: June 21, 2010, 01:17:16 am »
Hmmm so the OS runs ONSTRPT and OFFSCRPT just like programs?  Interesting...  It wouldd be an interesting task to modify OFFSCRPT to do whatever you want...  i shall run some tests...

souvik1997

  • Guest
Re: Axe and OFFSCRPT
« Reply #9 on: June 21, 2010, 09:24:50 am »
Archiving OFFSCRPT would be a very bad thing. People could make virus programs to shut off your calculator when you turn it on, and it would be very hard to delete OFFSCRPT.

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Axe and OFFSCRPT
« Reply #10 on: June 21, 2010, 10:08:17 am »
if only the calc could be hacked so that the OS could run OFFSCRPT from archive (cuz, if you archive it, the calc does not run the specified prgm on startup) and if OFFSCRPT could be made to check if the specified prgm is archived and if it is, unarchive it. Thats what i hate: progs set to run on startup must be in RAM, and if you crash, OFFSCRPT is reset.

But if you use CalcUtil, even the start program can be run if it's archived.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

souvik1997

  • Guest
Re: Axe and OFFSCRPT
« Reply #11 on: June 21, 2010, 11:04:43 am »
In case anyone wants to know, I have found out how OFFSCRPT works with the help of KermMartian, Calcsys's disassembler, DoorsCS7, and TI's Startup App.
The original post was at http://www.cemetech.net/forum/viewtopic.php?t=4636&highlight=
ASM code:
Code: [Select]
OffScrptCode:
.relocate $8001
  bit 4,(IY+apdFlags)
  ret nz
  ld hl,MyAppName
  rst 20h
  bcall(_FindApp)
  ret c
  dec a      ;this is on page 2
  ld hl,MyGetKeyHook
  bcall(_EnablegetKeyHook)
  ;set 0,(iy+34h)
  ret
MyAppName:
  .db AppObj,"DoorsCS7"
  ret
.endrelocate
OffScrptCodeEnd:
Basically it installs a getkey hook when the calculator turns off. The hook causes the calculator to launch the DCS7 app when the calculator is powering up. There is also an appvar called ONSCRPT, which does the same thing as OFFSCRPT except it is executed when powering up. Using ONSCRPT eliminates the need for a getkey hook, but it is unstable. ;D
« Last Edit: June 21, 2010, 11:46:17 am by souvik1997 »

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: Axe and OFFSCRPT
« Reply #12 on: June 21, 2010, 12:27:36 pm »
interesting

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Axe and OFFSCRPT
« Reply #13 on: June 21, 2010, 12:53:36 pm »
Btw I don't really remember having that on my calc before, even when I was using Startup. Was it added in later versions of Startup (after 2002)?
Maybe I am confusing with ONSCRPT or even some other APPS.

Nice to see some info about that. I think you should start a topic on WikiTI in the section of TIOS for TI-83+.
Hobbing in calculator projects.

souvik1997

  • Guest
Re: Axe and OFFSCRPT
« Reply #14 on: June 21, 2010, 01:50:06 pm »