Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Hot_Dog on April 18, 2011, 03:25:09 pm

Title: Preperation for Custom IM 1 Routine
Post by: Hot_Dog on April 18, 2011, 03:25:09 pm
I'm looking into writing a small, yet valuable, package called Sparrow that will allow users to run custom IM 1 routines without damaging the TI interrupt routine.  (No runer, this is not Project Crabcake ;) )If the calculator crashes, the TI routine will run without any problems at all.

However, I do need to know, is there any OS section of flash (like a part of a page) that no Operating system on Ti-83+s or Ti-84+s has touched?

And I need to put a couple of lines of code in page 0, as well as that one spot in flash that I can write in.  What's the best way to write to OS pages?
Title: Re: Preperation for Custom IM 1 Routine
Post by: thepenguin77 on April 18, 2011, 05:07:34 pm
There's room on the end of almost all the pages for code. The amount just varies by OS.

But I would say you are much better off just making an IM 2 interrupt that that ends with jp $0038. It has exactly the same benefits as IM 1 interrupts but it is OS version independent. The reason I say this is different OS's do different things down at $0038 and adding code there could be difficult.
Title: Re: Preperation for Custom IM 1 Routine
Post by: Hot_Dog on April 18, 2011, 05:31:01 pm
There's room on the end of almost all the pages for code. The amount just varies by OS.

But I would say you are much better off just making an IM 2 interrupt that that ends with jp $0038. It has exactly the same benefits as IM 1 interrupts but it is OS version independent. The reason I say this is different OS's do different things down at $0038 and adding code there could be difficult.

The different things at $0038 makes a lot of sense, but I have that under control.  Considering that my goal with this is so programmers won't have to create a 257-byte jump table, can you tell me the best way to write to flash?  I have no idea if B_CALLs will work on OS pages or not.
Title: Re: Preperation for Custom IM 1 Routine
Post by: Hot_Dog on April 18, 2011, 06:31:38 pm
This topic is now locked.
Title: Re: Preperation for Custom IM 1 Routine
Post by: SirCmpwn on April 18, 2011, 08:12:01 pm
This topic is now locked.
Why?
Title: Re: Preperation for Custom IM 1 Routine
Post by: Hot_Dog on April 18, 2011, 08:43:17 pm
This topic is now locked.
Why?

Cause I'm not doing the project anymore, it's more of a hassle than I thought it would be to write to flash