Changes
/* Rewind feature */
A very simple approach is to make a SNA for each frame and limit the RAM snapshot to 128KB, which is ok for 99% of CPC software.
For a 10-seconds long rewind functionality, only 64MB RAM is needed (128KB * 50 frames * 10 seconds)