This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
poopslayer78


Newbie


Joined: 10 Sep 2009
Posts: 28

Posted: 03 Apr 2010 10:46:47 pm    Post subject:

I am writting a program that needs to read large data files(saved as asm programs) that are stored in the flash memory. I do not need to write to the flash chip, just read bytes one at a time. I have a Ti84+ SE by the way.

Any help would be gladly accepted.
Back to top
calcdude84se


Member


Joined: 09 Aug 2009
Posts: 207

Posted: 04 Apr 2010 09:55:04 am    Post subject:

Do you want to read the data directly, or is an OS routine that copies the data to RAM fine?
Before you do either, you'll have to use BCALL(_ChkFindSym) to find the location of the program.
After that, you either copy the data directly (or read it, byte by byte) or use BCALL(_FlashToRAM) to copy it with an OS routine.
I can draw up some code if you want it.
Back to top
poopslayer78


Newbie


Joined: 10 Sep 2009
Posts: 28

Posted: 04 Apr 2010 01:18:51 pm    Post subject:

reading the data directly without a B_call is what i really need but id still like to know the arguments for the FlashToRam call for reference

Last edited by Guest on 04 Apr 2010 01:24:24 pm; edited 1 time in total
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 04 Apr 2010 02:21:18 pm    Post subject:

poopslayer78 wrote:
reading the data directly without a B_call is what i really need but id still like to know the arguments for the FlashToRam call for reference

You can use port 6 to control which Flash page is mapped to $4000-$7fff in memory. If you are reading data and you reach $8000, you must continue reading at $4000 on the next page.
Back to top
DrDnar


Member


Joined: 28 Aug 2009
Posts: 116

Posted: 04 Apr 2010 05:53:03 pm    Post subject:

WikiTI has information on this topic. I've also written two programs that read data from the archive, an undeleter, which will show you how to parse the archive directly; and a program that dynamically reads a data file from the archive.
Back to top
poopslayer78


Newbie


Joined: 10 Sep 2009
Posts: 28

Posted: 04 Apr 2010 07:07:48 pm    Post subject:

perfect! ill try to get some code working.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement