Author Topic: Preperation for Custom IM 1 Routine  (Read 3990 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2994
  • Rating: +445/-10
    • View Profile
Preperation for Custom IM 1 Routine
« 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?
« Last Edit: April 18, 2011, 04:25:18 pm by Hot_Dog »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1591
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Preperation for Custom IM 1 Routine
« Reply #1 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.
zStart v1.3.013 9-20-2013 
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

Offline Hot_Dog

  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2994
  • Rating: +445/-10
    • View Profile
Re: Preperation for Custom IM 1 Routine
« Reply #2 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.

Offline Hot_Dog

  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2994
  • Rating: +445/-10
    • View Profile
Re: Preperation for Custom IM 1 Routine
« Reply #3 on: April 18, 2011, 06:31:38 pm »
This topic is now locked.

SirCmpwn

  • Guest
Re: Preperation for Custom IM 1 Routine
« Reply #4 on: April 18, 2011, 08:12:01 pm »

Offline Hot_Dog

  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2994
  • Rating: +445/-10
    • View Profile
Re: Preperation for Custom IM 1 Routine
« Reply #5 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