Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Hot_Dog on July 16, 2011, 11:07:45 am

Title: RAM clear on extra RAM pages?
Post by: Hot_Dog on July 16, 2011, 11:07:45 am
If a 15Mhz calculator crashes, does RAM on page $83 get cleared, even if the page resides in the $C000-$FFFF area?
Title: Re: RAM clear on extra RAM pages?
Post by: thepenguin77 on July 16, 2011, 01:00:45 pm
What? Are you saying do 3>port ($05) then jump to $C000 essentially?

The answer is no, on hard resets, page 0 gets swapped into that bank. And before the OS/Boot code clears it, I believe they also swap page 0 in. So unless you pull out the little battery, page $83 will remain intact.
Title: Re: RAM clear on extra RAM pages?
Post by: Hot_Dog on July 16, 2011, 03:45:16 pm
What? Are you saying do 3>port ($05) then jump to $C000 essentially?

The answer is no, on hard resets, page 0 gets swapped into that bank. And before the OS/Boot code clears it, I believe they also swap page 0 in. So unless you pull out the little battery, page $83 will remain intact.

It was a hypothetical situation.  What I want to do is save about 3 bytes of data to page $83 so it remains intact in case there's a crash
Title: Re: RAM clear on extra RAM pages?
Post by: thepenguin77 on July 16, 2011, 03:45:52 pm
That will stick as long as something else doesn't kill it.