From 4941f473a28d6a360b7c013fcd41072149f21b35 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 28 Feb 2013 04:33:54 -0600 Subject: [PATCH] vba - set_registers --- extras/vba.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extras/vba.py b/extras/vba.py index 4890a79b6..1d1e1e5c5 100644 --- a/extras/vba.py +++ b/extras/vba.py @@ -320,6 +320,13 @@ def get_registers(): 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.