0 Members and 4 Guests are viewing this topic.
1. sets up all of the calculator hardware through ports (port (07) gets 80h except for an OS installation where it gets 00h).2. checks for Stat and Del and does its usual if they are pressed3. checks (0038h) to make sure it's not FFh4. checks (0056h) to make sure it's A55Ah, (5Ah, A5h in memory)5. jumps to 0053hAlso, if you are going to send your own OS, (0056h) should be $A5FF when sending. Something gets angry if it's not, but I don't remember what it is.
The boot code starts on page 7F at 4000, not 0000 on page 00 of the OS. (Technically the boot code starts on page 7F at 0000, but I'm not going into that)
A lot of the useless code you saw was so people can't trick the boot code into unlocking flash for them. When we unlock flash, we have to trick those things into returning to our control with flash unlocked And as much as you'd like to think otherwise, TI's code is actually pretty well written :)