Scratch Ram
Archiver
Posts: 46,084
What is scratch ram and how is it different from the standard bs2 ram.
Thanks,
Jim Gorbet
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
[noparse][[/noparse]Non-text portions of this message have been removed]
Thanks,
Jim Gorbet
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
that is a 'scratch pad' you write on it, erase or throw it away, the
paper, and rewrite. A RAM that is a 'scratch pad' that is temporally
used to store information. You can connect one of these to the stamp,
but with out Parallax's permission, you can't write extended variables
to them, unless what you read or write is less than $FFFF (hex for
65,535).. :-))
HTH,
Leroy
Jim Gorbet wrote:
>
> What is scratch ram and how is it different from the standard bs2 ram.
>
> Thanks,
>
> Jim Gorbet
>
>
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
NOTE: This e-mail is confidential and may also be privileged; under no
circumstances should you forward it, or copy or disclose its contents,
to any other person without the prior consent of the sender. If you are
not an intended recipient of this e-mail, please notify us immediately.
Internet communications are not secure and subject to possible data
corruption, either accidentally or on purpose, and may contain viruses.
Furthermore e-mail is an informal and often abbreviated method of
communication. For these reasons, it will normally be inappropriate to
rely on any information or advice contained herein without also
discussing it with the sender.
(The note below is a Turkish version of the above disclaimer)
NOT: Bu elektronik posta mesaj
as a general purpose holding area or as a communications mechanism when
switching between program slots.
It differs from the standard RAM in that it cant be named or accessed
directly, and you can only deal with it a byte at a time. PUT is used to
place a byte of data at a specific scratchpad address. GET is used to
retrieve it.
Here's a couple of subroutines that use the scratchpad:
' save variables to scratchpad
Push_All_Vars:
FOR B25 = 0 TO 24
PUT B25, B0(B25)
NEXT
RETURN
' retrieve variables from scratchpad
Pop_All_Vars:
FOR B25 = 0 TO 24
GET B25, B0(B25)
NEXT
RETURN
I don't normally advocate the use of internal variable names, but here's an
exception. Both routines use a the last available byte in the variable RAM
as a loop counter to save all the others. These routines also take advantage
of the fact that the Stamp treats the variable RAM as an array.
-- Jon Williams
-- Parallax
In a message dated 5/6/02 4:53:08 PM Central Daylight Time,
jimgorbet@y... writes:
> What is scratch ram and how is it different from the standard bs2 ram.
>
[noparse][[/noparse]Non-text portions of this message have been removed]