uniAIDevs / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Sweep: Save and load floppy disk buffer with state #4

Closed sweep-ai[bot] closed 3 months ago

sweep-ai[bot] commented 3 months ago

Purpose

This pull request fixes an issue where the floppy disk buffer is not saved or loaded with the state. This means that if you write to a floppy disk and make a save state, the write is not recorded and will not be restored when the state is loaded.

Description

The changes in this pull request address this issue by:

  1. Adding the fda_image property to the state in the CPU.prototype.get_state() and CPU.prototype.set_state() methods.
  2. Adding the fda_image property to the state in the FloppyController.prototype.get_state() and FloppyController.prototype.set_state() methods.

These changes ensure that the floppy disk buffer is properly saved and loaded with the state, preserving any data written to the floppy disk.

Summary

Fixes #3.


[!TIP] To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

sweep-ai[bot] commented 3 months ago

Rollback Files For Sweep

This is an automated message generated by Sweep AI.

sweep-ai[bot] commented 3 months ago

Sweep: PR Review

Author: sweep-ai[bot] The Pull Request looks good! Sweep did not find any issues.