Open cool2apps opened 6 months ago
@cool2apps you can create an instance of Z80CPU
and use the state
getter/setter to change the register set.
https://pub.dev/documentation/z80/latest/z80/Z80CPU-class.html https://pub.dev/documentation/z80/latest/z80/Z80State/state.html
Hello, I would like to restore from a snapshot file format for a zx spectrum emulator. I need to set the registers to restore snapshot. I could not find a way to access to registers. How to access and set the registers? Thanks