EEPROM

The Uzebox now have a fully functional emulator! Download and discuss it here.
Post Reply
User avatar
Kilo
Posts: 330
Joined: Wed Dec 19, 2012 3:43 pm
Location: AC, Germany

EEPROM

Post by Kilo »

Hey guys,

I've got a feature to save a game.
emulated it and it works fine! But on the hardware there's nothing!
No saving, no loading!!!! WHY??
EESAVE is programmed!
The last digit of Pi is 7! I calculated this, as I counted to infinity yesterday!
User avatar
D3thAdd3r
Posts: 3222
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: EEPROM

Post by D3thAdd3r »

Need some code ;)
User avatar
Kilo
Posts: 330
Joined: Wed Dec 19, 2012 3:43 pm
Location: AC, Germany

Re: EEPROM

Post by Kilo »

has done it! I was just a bit too stupid! I have forgotten load the ID. Now it works! Thanks anyway! Oh damn, I hate to be a newbie in C! :lol:

but it was strange... with the emulator it works fine, and on the hardware not! But now it works also with the Uzebox!
The last digit of Pi is 7! I calculated this, as I counted to infinity yesterday!
User avatar
D3thAdd3r
Posts: 3222
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: EEPROM

Post by D3thAdd3r »

Good deal, if you ever feel bad about your code it's probably because you didn't look at my first uzebox stuff yet :) I'd say your first dabbling in C turned out quite respectable.

<pointless>
Little rusty on eeprom stuff but perhaps you save and it is simply uses id 0 since it was uninitialized ram value. If you have blank eeprom, the very first block it searches will have a 0 in id byte(s?). Then you load without id and you get that 0 block. On real hardware maybe you have some save from other things that are in that very first ~32 bytes(ie kernel flags). Just a thought
</pointless>
Post Reply