Skip to content

Implement game saving and loading #38

Description

@mikelcaz

Assigned people

Developer:
Reviewer:


Description

In order to save/load a game state, is necessary to be able to save/load the following data:

  • Main memory (which contains both the code and the data)
  • Registers
    • General purpose registers, from V{0} to V{e}
    • Carry / flag register V{f}
    • Stack Pointer (SP)
    • Program Counter (PC)
  • Graphic memory

The API must be extended somehow to achieve all that. Note that saving a image from the graphic memory is not enough, as is expected to be loaded later. Left that kind of stuff (that could be useful for previews and snapshots) out of the Chipeit API.

Saving stuff implies a runtime behavior, but loading it doesn't as long a new Chipeit object can be instantiated...


Related work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    emulation coreSomething related to the platform-independent CHIP-8 emulationtaskSomething that will NOT be used directly by the user.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions