SramRead()

Last Modified: 9/9/2021

Reads the address of SRAM and returns the value into an Integer or Long variable.

Arguments

NameTypeRequiredDescription
ReadType System Identifier Yes The length of data to return.
Address Long Yes The SRAM address to read data from.

Read Types

TypeDescription
sbReadByte The type of read to perform to SRAM.
sbReadWord The type of reade to perform to SRAM.

Example

Syntax: SramRead(<ReadType>, <Address>)
    Enable Sram
    SramWrite sbWriteByte,&h201FFF,65
    Disable Sram
    
    Print SramRead(sbReadByte,&h201FFF)

See Also

SramWrite