shithub: pokecrystal

Download patch

ref: 4941f473a28d6a360b7c013fcd41072149f21b35
parent: 9a20ba1d3f8b5680773bc65ed8497d2519ccb421
author: Bryan Bishop <[email protected]>
date: Wed Feb 27 23:33:54 EST 2013

vba - set_registers

--- a/extras/vba.py
+++ b/extras/vba.py
@@ -320,6 +320,13 @@
     Gb.getRegisters(register_array)
     return list(register_array)
 
+def set_registers(registers):
+    """
+    Applies the set of registers to the CPU.
+    """
+    Gb.writeRegisters(registers)
+write_registers = set_registers
+
 def get_rom():
     """
     Returns the ROM in bytes.