English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 04 September 2021, 18:54   #1
saimo
Registered User
 
saimo's Avatar
 
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.
Attached Files
File Type: lha NVRAM_file_tests.lha (16.3 KB, 46 views)
saimo is offline  
Old 05 September 2021, 09:25   #2
Toni Wilen
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..
Toni Wilen is offline  
Old 05 September 2021, 13:27   #3
saimo
Registered User
 
saimo's Avatar
 
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.
saimo is offline  
Old 05 September 2021, 13:38   #4
Toni Wilen
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.
Toni Wilen is offline  
Old 05 September 2021, 19:08   #5
saimo
Registered User
 
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 787
Cool, thanks!
saimo is offline  
Old 07 September 2021, 23:35   #6
saimo
Registered User
 
saimo's Avatar
 
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!
saimo is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:14.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08676 seconds with 14 queries