Revision: 45773
http://sourceforge.net/p/vice-emu/code/45773
Author: gpz
Date: 2025-09-17 17:55:56 +0000 (Wed, 17 Sep 2025)
Log Message:
-----------
VSP memory corruption emulation skipped last page, patch by Luke
Modified Paths:
--------------
trunk/vice/src/viciisc/vicii-cycle.c
Modified: trunk/vice/src/viciisc/vicii-cycle.c
===================================================================
--- trunk/vice/src/viciisc/vicii-cycle.c 2025-09-17 17:54:23 UTC (rev 45772)
+++ trunk/vice/src/viciisc/vicii-cycle.c 2025-09-17 17:55:56 UTC (rev 45773)
@@ -339,7 +339,7 @@
/* simulate the "VSP bug" problem */
if(vicii_resources.vsp_bug_enabled) {
if((vsp_buglines[line] + vsp_bugchannels[channel] + lib_unsigned_rand(0, 1)) > VSP_PROB_THRESH) {
- for(page = 0x00; page < 0xff; page++) {
+ for(page = 0x00; page <= 0xff; page++) {
/* keep 98,5% of all pages untouched. this is hand tweaked to result in
* somewhat convincing long term plots in vsp-lab */
if (lib_unsigned_rand(0, 1000) > 985) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|