vba - set_registers

original-commit-id: 4941f473a28d6a360b7c013fcd41072149f21b35
This commit is contained in:
Bryan Bishop 2013-02-28 04:33:54 -06:00
parent cd19630af5
commit 11f07db528

7
vba.py
View File

@ -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.