How To

How to save data in a program ?

0

G_9 2020-04-16 15:03

How to save binary numbers in a program


Timo 2020-04-16 15:52

What do you want to do exactly?


G_9 2020-04-16 17:10

Persistant memory ?


G_9 2020-04-18 09:20

Please help ...


Timo 2020-04-18 09:34

It's quite low-level, you'll have to use memory access commands. So, from memory address $E000 you have 4 kB of persistent memory, which means its content is automatically saved. Simple example how to store a single value:

N=PEEKL($E000)
PRINT "STORED:",N
INPUT "NEW VALUE:";N
POKEL $E000,N

Run this program several times and you will get the last saved values.


G_9 2020-04-18 12:59

🙏 Thank you now i understand everything in NX ✌️


G_9 2020-04-18 13:13

Did we can save text ?


Log in to reply.