jaravice 2020-01-22 06:30
How do i populate persistent memory?
is it like lowres original where there is a dedicated command or do i have to do some poke and peek voodoo to it?
Timo 2020-01-22 07:11
Voodoo! ;)
It’s just an area in the memory map (see manual).
Timo 2020-01-22 07:13
See chapter “Hardware Reference” -> “Memory Map”/“Persistent Memory”
was8bit 2020-01-22 19:26
poke and peek voodoo ....
was8bit 2020-01-22 19:29
One "trick" i have used is to "store" variables to the background, save both backgrounds to PERSIST memory, then reload the backgrounds and manually read the data off the backgrounds... i will post an example....
was8bit 2020-01-22 20:11
Actually, its the example is going to be a mini game... here is a sneak peak...
was8bit 2020-01-22 20:12
I will finish and post the example/game later in a few hours... :)
was8bit 2020-01-23 05:02
Ok, finished it :)
Check it out... be sure to ask any questions on THAT board... thanks :)
https://lowresnx.inutilis.com/topic.php?id=969
jaravice 2020-01-23 21:59
thank you for the replies :)
TrashCan Games 2020-01-24 05:44
How do you do multiple saves I’ve tried before but when I load the numbers there all distorted by doing PEEKL($E001) I’ve tried using a number splitter I made but I gave up
Timo 2020-01-24 06:33
TrashCan, you could use different offsets.
NSAVE=0
OFFSET=$E000+NSAVE*64
SCORE=PEEKL(OFFSET+0)
LIVES=PEEKL(OFFSET+4)
ARMOR=PEEKL(OFFSET+8)
ATTACK=PEEKL(OFFSET+12)
Timo 2020-01-24 06:36
NSAVE is the save number/slot.
By multiplying this by 64 you get space for 16 long numbers. This value can be adjusted.
TrashCan Games 2020-01-24 12:39
Thanks