SramRead()
Previous  Next

Description: Reads <Address> into an integer or long variable.

     Syntax:
     
SramRead(<ReadType>, <Address>)

Part
Description
<ReadType>
Required. The <ReadType> is either sbReadWord or sbReadByte.
<Address>
Required. The location in SRAM you want to read from. The SRAM address starts at &h200000. Depending on the addressing mode, you'll be restricted to the EVEN or ODD bytes, unless EVEN is used.

Example:

        Enable Sram
        SramWrite sbWriteByte,&h201FFF,Asc("A")
        Disable Sram

        Print SramRead(sbReadByte,&h201FFF)