Author Topic: FlashToRAM on Ti-84+ BE?  (Read 2904 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
FlashToRAM on Ti-84+ BE?
« on: January 09, 2013, 06:36:37 am »
Are there any Flash pages on the TI-84+ that B_CALL _FlashToRAM won't work on?  Is there a workaround?

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: FlashToRAM on Ti-84+ BE?
« Reply #1 on: January 10, 2013, 03:01:42 pm »
Nope, _flashToRam will work on any page. (However, it won't go over $1F on the 83+BE and $3E on the 84+BE)

Also, to save you the trouble of waiting for a reply, this kind of thing isn't too hard to figure out. I looked at a disassembly to get the answer, but an easy way to do it would be to just debug _flashToRam with wabbitemu and watch what happens to the value of A. Something like "cp $7E" would be a clear giveaway that it is not going to work on a specific page (_writeFlash has this restriction).
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 DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: FlashToRAM on Ti-84+ BE?
« Reply #2 on: January 10, 2013, 04:05:23 pm »
FlashToRam has the quirk that on the TI-83+SE/TI-84+SE, it can read from RAM pages 80h-87h, but not on the TI-84+ non-SE. However, on all models you can use it to copy from regular memory in the 8000h-FFFFh region. See also the Wiki page.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

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: FlashToRAM on Ti-84+ BE?
« Reply #3 on: January 11, 2013, 09:10:41 pm »
FlashToRam has the quirk that on the TI-83+SE/TI-84+SE, it can read from RAM pages 80h-87h, but not on the TI-84+ non-SE. However, on all models you can use it to copy from regular memory in the 8000h-FFFFh region. See also the Wiki page.

True. Also, you can tell _flashToRam to read ram from the $8000-$FFFF region and it will. At this point, it doesn't even matter what you set as the page to read from since it's not going to change the page swapped into $8000 or $C000. You could even use _flashToRam as a horrible replacement for ldir.
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