diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-21 16:02:10 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-21 16:02:10 -0500 |
commit | d29f193037cad147fe99aca6216a2e35346f5780 (patch) | |
tree | f3bb434820e5857ad56ea31fc83234bbeecff901 /pokemontools/vba/vba.py | |
parent | fecf601fd9fa912bcd9c374eb7db8901f9e6e791 (diff) |
placeholder for get_memory_range
But really, the old calls to get_memory_range should just be replaced
with code that uses vba.memory[:] directly.
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r-- | pokemontools/vba/vba.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index e0ebe61..e107d90 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -40,6 +40,13 @@ registers = vba_wrapper.core.registers.Registers(vba) button_masks = vba_wrapper.core.VBA.button_masks button_combiner = vba_wrapper.core.VBA.button_combine +def get_memory_range(address, length): + """ + This is just a lame way to avoid converting some of the old + get_memory_range calls to use the vba.memory property. + """ + return list(vba.memory[address:address+length]) + def translate_chars(charz): result = "" for each in charz: |