Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 144 users online: 2 members, 106 guests and 36 bots. Members: tifreak8x. Bots: VoilaBot (4), Spinn3r (1), Magpie Crawler (4), VoilaBot (9), Googlebot (18).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 930
|
Posted: 20 Mar 2012 03:35:39 pm Post subject: Reading Archive |
|
|
Is there a way for me to READ some data from a file, regardless of RAM or Archive state? Without moving the file into RAM? If so, how? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
calcdude84se
Power User

Joined: 14 Jun 2010 Posts: 408
|
Posted: 20 Mar 2012 04:37:06 pm Post subject: |
|
|
Ultimately, you do need separate routines for each, though in theory you could find some way (though likely far less efficient) to treat the two cases the same.
This stems mainly from the fact that archived programs etc. can cross pages in Flash. The result of this is that the entire program cannot readily be made available at the same time. In short, you need to deal with the possibility of page crossings.
If, on the other hand, you're willing to give up the requirement that the program not be moved to RAM, when the program is archived you can copy it into RAM. There are two ways you can go about doing this: you can create a new program in RAM and copy the content, and then treat it like it was in RAM to begin with, though you'll want to delete the copy at the end; or you can copy the program, whether in Archive or RAM (and there is one bcall that will handle both cases with only one calculation on your part in the former case), into some area of saferam and work with it from there. This last suggestion might be best if you have the saferam to spare, as now you can work with it from a fixed address. _________________ People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster.
-Adam Osborne |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 930
|
Posted: 20 Mar 2012 04:59:34 pm Post subject: |
|
|
Well my goal was to just make a backup of it from wherever it is. The backup would be created in RAM, so if possible I would like to not move the original anywhere. _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
|
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
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.024269 seconds.
|