vba - set_registers

This commit is contained in:
Bryan Bishop 2013-02-28 04:33:54 -06:00
parent 9a20ba1d3f
commit 4941f473a2
1 changed files with 7 additions and 0 deletions

View File

@ -320,6 +320,13 @@ def get_registers():
Gb.getRegisters(register_array) Gb.getRegisters(register_array)
return list(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(): def get_rom():
""" """
Returns the ROM in bytes. Returns the ROM in bytes.