Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 04:33:34 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: OFFSCRIPT Standardization -  (Read 432 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Topic starter
Total Post Ratings: +36

View Profile
« on: 15 October, 2011, 01:27:49 »
0

OFFSCRIPT is a very useful feature of the TI-83 Plus OS, but it is a source of conflict for many shells and start-up programs. 
I propose that we make a standard OFFSCRIPT that allows for the calling of multiple programs. 

The standard should include a table of programs and apps to be executed.  The table should include the App/Program name, entry point, priority (programs with a lower priority byte will be executed first), and flags for other various entry settings. 

With an implementation of an OFFSCRIPT standard, contribution of ideas, consensus, and cooperation, new opportunities would open up to assembly programmers, and more programs could be run without incompatibilities. 
Logged

ld a, 0
ld a, a
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 01:08:43
Date Registered: 15 August, 2010, 09:18:54
Posts: 3192


Total Post Ratings: +222

View Profile
« Reply #1 on: 15 October, 2011, 04:07:05 »
0

The problem with standards is often that no one adopts them. How would a new standard work and not break compatibility with the old "standard?"

EDIT: Also, how many programs really need to be run at startup or shutdown?
« Last Edit: 15 October, 2011, 04:08:11 by Qwerty.55 » Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Topic starter
Total Post Ratings: +36

View Profile
« Reply #2 on: 15 October, 2011, 04:28:57 »
0

The problem with standards is often that no one adopts them. How would a new standard work and not break compatibility with the old "standard?"

EDIT: Also, how many programs really need to be run at startup or shutdown?
There really is not an old "standard."  It's pretty much the wild west for OFFSCRIPT.  New improvements on the protocol will be backwards compatible with the proposed standard.

If I released the source code and made an Axiom that uses this standard, it will become easier for programmers to use OFFSCRIPT. 
Logged

ld a, 0
ld a, a
thepenguin77
z80 Assembly Master
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 05:33:45
Date Registered: 14 December, 2009, 04:21:52
Location: Purdue
Posts: 1490


Total Post Ratings: +778

View Profile
« Reply #3 on: 15 October, 2011, 16:01:52 »
0

I agree that OFFSCRPT is a huge source of conflict, but the problem is that, like qwerty said, it's far too late to implement a standard. The reason I say this is because there are quite a few apps that use OFFSCRPT that haven't been touched in several years. We could adapt this new technique of OFFSCRPT cooperation and then the old program would just destroy it.

;VVVVVVVV see edit
The ambitious way to fix this problem would be to make an app that handles this huge mess. What you would do is run a program, let it make its OFFSCRPT, then have the OffScrpt app save that OFFSCRPT into its database. This would continue until the app has a copy of all of the OFFSCRPTs you want to run. Then you go into the app, set priorities on the different OFFSCRPTs and let it run.

The tricky part with this app though would be making it run when shutting down. I believe it can be done through a appChangeHook, but I'm not positive. I think a better solution would be to patch the code that calls OFFSCRPT and instead have it call the app. (Or this app could make an OFFSCRPT Big smile)
;^^^^^^^

The less ambitious way to somewhat fix this problem is to only use an OFFSCRPT when you absolutely have to. This means don't destroy OFFSCRPT if you aren't using it. (Not even going to say it)



Edit:
    That won't work. I forgot how OFFSCRPTs work. OFFSCRPTs are exactly what they sound like, off scripts. This means they only get run when you turn the calculator off. In order to run when the calculator turns back on, I would assume that nearly every OFFSCRPT sets a getCSC hook so that as soon as the calculator turns back on, the main app gets run.

In short, only the last OFFSCRPT would appear to get run.

Edit2:
    This also means that standardization of OFFSCRPTs is fundamentally impossible. (Or just really really ugly, glitchy, and hacky)
« Last Edit: 15 October, 2011, 16:12:31 by thepenguin77 » Logged

zStart v1.3.012 6-10-2013  zStart fully works on 83+BE's (except custom font)
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112
ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Topic starter
Total Post Ratings: +36

View Profile
« Reply #4 on: 16 October, 2011, 04:09:47 »
0

Edit2:
    This also means that standardization of OFFSCRPTs is fundamentally impossible. (Or just really really ugly, glitchy, and hacky)
Yeah, I was afraid of that.  Somebody should have come up with a standard earlier.  Now, it is too hard.

Is there still time to make an ONSCRPT standard?  (How many programs use it?)
Logged

ld a, 0
ld a, a
thepenguin77
z80 Assembly Master
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 05:33:45
Date Registered: 14 December, 2009, 04:21:52
Location: Purdue
Posts: 1490


Total Post Ratings: +778

View Profile
« Reply #5 on: 16 October, 2011, 15:02:39 »
0

I don't think there's as much of a need for ONSCRPT standardization. I haven't seen any other ONSCRPTs other than the one I use in zStart, and the reason is simple. ONSCRPT only runs if the calculator is turning on from a state where the ON button did not initiate the sleep. (i.e. APD and non-ram-clearing battery pulls).

With such a limited call region, ONSCRPT almost seems useless. And it is to most people. That's why I only use it to reinitialize ports that I mess with because they get reset on battery pulls.
Logged

zStart v1.3.012 6-10-2013  zStart fully works on 83+BE's (except custom font)
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.269 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.