04 September 2021, 18:54 | #1 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
CD32 NVRAM bug
While testing my (rewritten) NVRAM routines, I noticed an odd issue: if the NVRAM is written to starting from a certain address, the WinUAE NVRAM file grows beyond 1024 bytes. More precisely:
1. my tests write 6 bytes at arbirary NVRAM addresses between 0 and 1018; 2. if the address used is between 0 and 1008, the behaviour is normal; 3. starting from address 1009, the NVRAM file grows by address-1008 bytes. Here is a picture that shows it visually (click to enlarge): Moreover, the extra bytes get apparently random values: after restarting/resetting UAE and running the same test again, the values change. If they are of any help, the archive attached here contains the test programs and the corresponding NVRAM files. I've tested this using the public beta 31 and also the beta 0 2020.03.20 you gave me with the NVRAM debug log enabled. |
05 September 2021, 09:25 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Moved, I am 100% sure this has nothing to do with 4.5+ betas..
|
05 September 2021, 13:27 | #3 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
Sorry for posting it in the wrong place, then!
By the way, one thing I didn't mention (but you might have noticed it already): the problem is visible only when writing to the last 16-byte page. It looks like UAE always saves 16 bytes, starting for the intial write address. |
05 September 2021, 13:38 | #4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
I didn't test but it should be fixed now. Data write wraps around but file write didn't.
|
05 September 2021, 19:08 | #5 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
Cool, thanks!
|
07 September 2021, 23:35 | #6 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
I've tested beta32 now and I can confirm that the bug is gone
Thanks once again for the immediate fix! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CD32 NVRAM redirect | BigMacDaddy | New to Emulation or Amiga scene | 17 | 17 March 2021 21:18 |
Extend CD32 NVRAM? | Amiga1992 | Hardware mods | 41 | 16 December 2018 14:59 |
CD32 NVRAM management | Amiga1992 | support.Hardware | 9 | 20 February 2012 13:27 |
CD32 nvram file...? | Christian | support.WinUAE | 11 | 13 December 2006 22:25 |
Cd32 Nvram | Phantomz | request.Apps | 5 | 16 March 2003 21:09 |
|
|