Author Topic: RAM clear on extra RAM pages?  (Read 3136 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
RAM clear on extra RAM pages?
« 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?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: RAM clear on extra RAM pages?
« Reply #1 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.
« Last Edit: July 16, 2011, 01:01:18 pm by thepenguin77 »
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
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: RAM clear on extra RAM pages?
« Reply #2 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

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: RAM clear on extra RAM pages?
« Reply #3 on: July 16, 2011, 03:45:52 pm »
That will stick as long as something else doesn't kill it.
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