vba - set_registers

This commit is contained in:
Bryan Bishop 2013-02-28 04:33:54 -06:00
parent 9a20ba1d3f
commit 4941f473a2

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.