How to access nonvolatile memory in asm?
Hi guys!
I´d love to implement highscore save code in my forthcoming game RESHOOT R. Wonder if anyone wants to share code on how to use the Nonvolatile library in asm. :-) |
If you specify where you want the highscores to be saved, I can determine if this stays in Hardware or is moved to System. :)
If the game is started from AmigaDOS/Workbench, saving a file with dos.library should be the way to go. If the game runs from floppy, you can reserve a sector or two and write it with hardware routines or trackdisk.device. |
RESHOOT R is supposed to run on a CD32, A1200 or A4000 with Kick >3.0. It´s booting from CD-ROM, but can also be run from the Workbench, just like RESHOOT.
I prefer to use the nonvolatile-library, as its said to automatically choose the CD32s builtin 1 KB memory if available; and on A1200/4000 a path to whatever the user has defined to be his nonvolatile memory, be it harddrive or floppy disk. Therefore I wouldn´t need any sophisticated trackdisk trickery. |
Quote:
http://amigadev.elowar.com/read/ADCD.../node04DA.html |
Yes, but still a tested example of working code would be nice :-) I´m always having a hard time when I´m supposed to work with Amigas OS-routines. Documentation doesn´t look complete to me, too. Have no idea about the precise format of the parameters, for example, and don´t want to spend too much time on experimentation. Got plenty of other things to fix in order to make the demo ready for the gamescom show end of August inc Cologne.
|
Quote:
Quote:
Quote:
|
Some years ago I coded a CD32 patch for Tubular Worlds which also included saving scores to NVRAM. I'll see if I can find the source somewhere. :)
|
Quote:
@StingRay: Sounds great, can´t wait! |
Ah, CD32 support. Good :)
Thread moved to System which is the best place I feel :) |
1 Attachment(s)
Quote:
|
May be too late, but for what it's worth Gloom saves to CD32 NVRAM
https://github.com/earok/GloomAmiga/blob/master/gloom.s |
All times are GMT +2. The time now is 10:58. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.