WRITE - BASIC Stamp Command Reference
Page 332
•
BASIC Stamp Programming Manual 2.0b
•
www.parallaxinc.com
NEXT
Demo Program (WRITE.bs2)
' This program writes a few bytes to EEPROM and then reads them back out and displays
' them on the screen.
'{$STAMP BS2} 'STAMP directive (specifies a BS2)
ValAddr VAR BYTE
Value VAR BYTE
WriteItOut:
WRITE 0, 100 'Write some data to location 0 through 3
WRITE 1, 200
WRITE 2, 45
WRITE 3, 28
ReadItOut:
FOR ValAddr = 0 TO 3 'Read all four locations and display the
READ ValAddr, Value 'value on the screen
DEBUG ? Value
NEXT
2
e
2
sx
2
p
2
NOTE: This is written for the BS2
but can be used for the BS2e,
BS2sx and BS2p also. Locate the
proper source code file or modify
the STAMP directive before
downloading to the BS2e, BS2sx or
BS2p.
Summary of Contents for BASIC Stamp 1
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...