How does the bootloader know where to save the SAV file?

Understanding the language, error messages, etc.

Re: How does the bootloader know where to save the SAV file?

Postby Zvoc47 » Wed Dec 23, 2015 8:31 pm

Oh, I see now. It all makes sense now. But can the game call the SPM opcode or does the bootloader do that? And I haven't got my answer on settings. Does the game write settings to Flash every single time it makes a change or does the bootloader do that?
Zvoc47
 
Posts: 56
Joined: Mon Oct 05, 2015 10:03 pm

Re: How does the bootloader know where to save the SAV file?

Postby Sorunome » Sun Dec 27, 2015 1:30 am

Yes, the game can re-write flash stuff, too, even its own code......you just have to be extremely careful with that, you could also overwrite the code that is currently being executed and stuff......

As for the settings, you usually change them in that SETTINGS.HEX thing.
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Re: How does the bootloader know where to save the SAV file?

Postby Zvoc47 » Sun Dec 27, 2015 6:33 pm

Wow... So if you use a slider for changing the contrast of the screen or brightness, every frame as the slider moves, the Flash memory is being worn off by having the new setting be written! Oh my...
Zvoc47
 
Posts: 56
Joined: Mon Oct 05, 2015 10:03 pm

Re: How does the bootloader know where to save the SAV file?

Postby Sorunome » Mon Dec 28, 2015 3:05 am

Zvoc47 wrote:Wow... So if you use a slider for changing the contrast of the screen or brightness, every frame as the slider moves, the Flash memory is being worn off by having the new setting be written! Oh my...

No, not at all! It isn't saved until you actually hit "save" ;)
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Re: How does the bootloader know where to save the SAV file?

Postby Zvoc47 » Wed Dec 30, 2015 11:57 pm

Was that sarcasm or for real?
Zvoc47
 
Posts: 56
Joined: Mon Oct 05, 2015 10:03 pm

Re: How does the bootloader know where to save the SAV file?

Postby Sorunome » Sat Jan 09, 2016 4:25 pm

That was for real.
User avatar
Sorunome
 
Posts: 629
Joined: Sun Mar 01, 2015 1:58 pm

Previous

Return to Programming Questions

Who is online

Users browsing this forum: No registered users and 21 guests

cron