Download data/examples/00tutorial/eeprom.bas from introvoyz041/tinybasic: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/00tutorial/eeprom.bas
- Command line
-
hf download hf://datasets/introvoyz041/tinybasic/data/examples/00tutorial/eeprom.bas
-
curl -L -o eeprom.bas https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/00tutorial/eeprom.bas
394 Bytes
| 10 REM "EEPROM demo" | |
| 20 REM "@E, and the array @E()" | |
| 100 PRINT "Size of EEPROM", @E | |
| 110 IF @E>0 GOTO 200 | |
| 120 PRINT "No EEPROM found - test skipped" | |
| 130 STOP | |
| 200 PRINT "Storing numbers to eeprom array, size =", @E | |
| 210 FOR I=1 TO 10 | |
| 220 @E(I)=I*I | |
| 230 NEXT I | |
| 240 PRINT "Recalling numbers from eeprom" | |
| 250 FOR I=1 TO 10 | |
| 260 PRINT I, @E(I) | |
| 270 NEXT | |
| 300 PRINT "Restart BASIC later and check @E(10)" | |