Hello,
What sector does TIOS use for the swap sector in each model?
Thanks! Please keep in mind I cannot use privileged pages, as these are used for accessing privileged ports Wink
SirCmpwn wrote:
Hello,
What sector does TIOS use for the swap sector in each model?
Thanks! Please keep in mind I cannot use privileged pages, as these are used for accessing privileged ports Wink
The ever-helpful TI-83+ SDK lists TI-83+ pages 0F-0C and 0B-08 as swap/user data pages. The 83+SE is shown as the same set of pages. My version of the SDK does not mention the 84+/SE calculators.
Thank you! Do you know if those pages would be of use for KnightOS as well? I think I just want to use the last sector that doesn't include privileged pages.
You must not assume that is true. The swap sector can be any sector in the archive except the last. It will be the sector that starts with the byte 0FEh. Running the Boot code's self-test will erase all sectors, including the swap, making it so no sector is marked as being a swap sector. You must test for this condition, or your garbage collect code might be unhappy.
The self test erases user archive? It's only ever erased RAM for me O_o
No, the boot code has a separate self test from the OS's self test.
I'll look into a way of handling that, and study it a bit more.
It doesn't really matter which sector the TI-OS uses. You're making your own OS here, so you can do whatever you want Smile
calc84maniac wrote:
It doesn't really matter which sector the TI-OS uses. You're making your own OS here, so you can do whatever you want Smile
Ah, I got a different impressive from DrDnar. I misunderstood him to say that there was one sector to be used regardless of the OS. My error.
Yeah, I'm just trying to decide which sector I should use.
SirCmpwn wrote:
Yeah, I'm just trying to decide which sector I should use.
What factors are you taking into consideration when choosing the sector?
Two, mostly. First of all, the swap sector should be as far into the back of ROM as possible, because it will be more efficient to move the filesystem page by page instead of skipping the swap sector in the middle. Also, I don't want to use any privileged pages, because I need those to unlock flash in the first place Razz
That makes sense. So the last sector is privileged (1F/3F/7F), right? Would the second-to-last sector be the right choice, then? Or did I overlook something?
I can't quite recall which pages/sectors are privileged, but I use 1C to unlock flash in KOS. I have a feeling that the second to last sector would be a good choice.
SirCmpwn wrote:
I can't quite recall which pages/sectors are privileged, but I use 1C to unlock flash in KOS. I have a feeling that the second to last sector would be a good choice.
Fair enough. I know BrandonW is around this morning; I wonder if he has any thoughts on the matter.
Excluding the boot code page(s) and the certificate page (which may or may not be privileged), there are two privileged pages: $1C/$3C/$7C and $1D/$3D/$7D.
Before these two pages (which make up one sector) would be the last 64KiB sector, which is $18/$38/$78-$1B/$3B/$7B.
Note that, on the 84+(SE), $2C/$6C-$2F/$6F is also ROM and cannot be modified.
If I understood you properly, you are suggesting $18/$38/$78-$1B/$3B/$7B, correct?
Yes Very Happy
That and warning him about another boot sector on the 84+(SE)
calcdude84se wrote:
Yes Very Happy
That and warning him about another boot sector on the 84+(SE)
Ah, that's an important caveat to take into consideration indeed. Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement