Package smsqmulator
Class Snapshot
java.lang.Object
smsqmulator.Snapshot
A class to generate, save and load snapshots.
The format of a snapshot is
- General header
- memory header
- memory (array of shorts)
- Screen header
- Registers header
- Registers d0-d7 (8 ints)
- Registers a0-a7 (8 ints)
- SP (1 int)
- status reg (1 int)
- Memory header
- amount of memory (1 int)
- ... xxx bytes of memory
- Screen header
- screen mode (1 int)
- amount of screen memory
- ... xxx bytes screen memory
-
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
readSnapshot
(MC68000Cpu cpu, TrapDispatcher td, String filename) Reads a snapshot.static void
writeSnapshot
(MC68000Cpu cpu, TrapDispatcher td, String filename)
-
Constructor Details
-
Snapshot
public Snapshot()
-
-
Method Details
-
writeSnapshot
-
readSnapshot
Reads a snapshot.- Parameters:
cpu
-td
-filename
-
-