Author Topic: I need to load page x of an app without calling code.  (Read 6920 times)

0 Members and 1 Guest are viewing this topic.

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: I need to load page x of an app without calling code.
« Reply #15 on: December 17, 2013, 08:37:03 pm »
That's because pages on the 83/84+(SE) calcs are stored in reverse order. If the base page was $40, the next page would be $3F, and the one after that would be $3E

I recall that the TI-73 stores pages in the order you'd expect them to, tho.
« Last Edit: December 17, 2013, 08:37:39 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

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: I need to load page x of an app without calling code.
« Reply #16 on: December 18, 2013, 08:07:30 pm »
You must not think of flash and RAM as two separate memories. Memory $0000-$7FFF is flash, and $8000-$FFFF is RAM.

To make a flash page available, just write its number to port 6 to put it in $4000-$7FFF, and port 5 to put it in $0000-$3FFF (a flash page is 16384 = $3FFF bytes).

When code of an app is executed, all addresses between $4000 and $7FFF refers to its own code (since it always takes one full page), so if you want to copy something in RAM, only a ldir instruction is enough.

Also, port (05) maps 0xC000 - 0xFFFF, not 0x0000 - 0x3FFF. For your purposes, just consider 0x0000 - 0x3FFF to always be page 0.
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 Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: I need to load page x of an app without calling code.
« Reply #17 on: December 19, 2013, 02:32:08 am »
Oh well, I apparently forgot that. Thanks for notifying.