This is code not work!?
s$=Read ?start
PrintN(s$)
DataSection:
start:
Data.s "Hello world!"
EndDataSection
How to load data from memory
Re: How to load data from memory
You use the wrong syntax.
If you want to read from a data section, you have to use Restore to begin the reading and then Read to read the data into a variable. And if you want to use PrintN() you have to open a console:
If you want to read from a data section, you have to use Restore to begin the reading and then Read to read the data into a variable. And if you want to use PrintN() you have to open a console:
Code: Select all
OpenConsole()
Restore start
Read.s s$
PrintN(s$)
Input()
DataSection:
start:
Data.s "Hello world!"
EndDataSectionPB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: How to load data from memory
thanks, I figured it out
Code: Select all
s$=PeekS(?mem1,12)
PrintN(s$)
DataSection:
mem1:
Data.s "Hello world!"
EndDataSection
