SecondBASIC Documentation v3

Home / Command Reference / Data, DataInt, DataLong

Data, DataInt, DataLong

Description: Inserts data into the ROM that can be read by the Read, ReadInt, and ReadLong commands, as well as the Read(), ReadInt(), and ReadLong&() functions.

Syntax:

Data <constant> [, <constant> [, n]]
DataInt <constant> [, <constant> [, n]]
DataLong <constant> [, <constant> [, n]]

Part Description
<constant> Required. Constant data can either be number or characters for Data statements, but must be numerical for DataInt and DataLong commands.

Example:

        Reload MyData
        For i = 0 To 1
                Read b$
                Print b$
        Next
 
        Reload MyDataInt
        For i = 0 To 3
                Print ReadInt()
        Next
        Reload MyDataLong
 
        For i = 0 To 2
                Print ReadLong&()
        Next
 
MyData:
        Data "Hello World!", "More Data"
MyDataInt:
        DataInt 0,1,$0EAA, &hFF
MyDataLong:
        DataLong 80000,95000,8975200