SecondBASIC Documentation v3

Home / Function Reference / SramRead()

SramRead()

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

Syntax:

SramRead(<type>,<address>)

Part Description
<type> Required. Valid values are 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")
        Print SramRead(sbReadByte,&h201FFF)
        Disable Sram