WRITE
 
Syntax


WRITE offset, [ OutputList

OutputList  =  expr | arrayname \ count | stringname {\count} | "string"   { , OutputList}

Description  --- ONLY Available on the ARMexpress (2106)


Writes data stored in the Flash memory shared with the same Flash space as the DATA command. The offset is used to change the location within the data array that will be written.

The elements of the OutputList  will be written into each word (32 bit) location in Flash,  starting at offset.
That includes string elements so that each byte of the string will be written into an individual word. 4K bytes are available for DATA and/or WRITE.  This is equivalent to 1024 elements. 

The RESTORE  statement resets the next-element pointer to the start of the DATA.  This allows the user to alter the order in which the DATA are READ.

Example

'  simple example of write and read
write 4,[0x87654321,0x12345678]
read 5,a        ' this will read the 5th value OFFSET MUST be a constant !!
print hex(a)
run
Programming Flash 2106...*+*+
...   0.17K code   0.01K data programmed
Executing...
12345678

Differences from other BASICs

 

See also