[A83] Re: What the heck is RST???
[Prev][Next][Index][Thread]
[A83] Re: What the heck is RST???
At risk of sounding ignorant because I didn't read the earlier parts of the
conversation...If all he's doing is reading variables from Flash, why would
he need to do any so complicated as the RAM page switching scheme?
What I do to read variables from Flash (in MirageOS anyhow), is just copy
all the archived VAT/header information to a bit of RAM using FlashToRAM,
sort out from that where the data actually starts, and then store that
pointer. At that point, you can just use FlashToRAM, LoadCIndPaged, or the
PagedGet routines to read the data from Flash, or load it into a buffer in
RAM.
-Dan Englender
----- Original Message -----
From: "Kirk Meyer" <kirk.meyer@colorado.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Saturday, July 07, 2001 5:09 PM
Subject: [A83] Re: What the heck is RST???
>
> I think he may want to keep the page there. I'm assuming he's trying to
> access potenitally archived variables directly. A better way to do that, I
> have been told, is to use FlashToRAM to cache data to some free memory.
>
> -----Original Message-----
> From: assembly-83-bounce@lists.ticalc.org
> [mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Dan Englender
> Sent: Saturday, July 07, 2001 3:02 PM
> To: assembly-83@lists.ticalc.org
> Subject: [A83] Re: What the heck is RST???
>
>
>
> Well, unless I misunderstood, he only needs to swap the pages to read a
bit
> of data from the ROM page (which he can stick on the stack, or some other
> place still accessible while the RAM page is out). Once he's done doing
> that, he can swap back in the RAM page, and use all ROM calls like usual.
> And like Michael said, most ROM calls use RAM areas, and they get pretty
> long if you want to put the *whole thing* in your application.
>
> -Dan Englender
>
>
>
Follow-Ups:
References: