P
PyBoy7mo ago
Bækalfen

Memory view into PyBoy [Example]

How do I get a memory view from PyBoy? When I take a slice like this pyboy.memory[0xFF00:0xFFFF], it doesn't change when the special registers update.
1 Reply
Bækalfen
BækalfenOP7mo ago
This is currently not supported:
At this point, all reads will return a new list of the values in the given range. The slices will not reference back to the PyBoy memory. This feature might come in the future.
https://docs.pyboy.dk/#pyboy.PyBoyMemoryView

Did you find this page helpful?