Changes

Jump to: navigation, search

Emulators

152 bytes added, 22:44, 18 December 2023
/* Rewind feature */
A very simple approach would be 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).
(But way more efficient methods certainly exist as , like only storing the differences in RAM between 2 frames. That makes it possible to do the rewind of even a CPC equipped with a 4MB RAM expansion. Proof of it is the GBA emulator [https://youtu.be/Sfc_1NKbiKg SkyEmu demonstrated demonstrating super long rewind] while needing very few RAM).
For debugging, going back to the previous instruction is easily implemented. The emulator has to store the time when the previous instruction was executed so that he can go back to that instruction. In the same way, emulators can provide access to the previous HBL, IRQ, VBL, etc.
5,099
edits