summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authorpadz <yenatch@github.com>2012-11-15 02:33:02 -0500
committerpadz <yenatch@github.com>2012-11-15 02:33:02 -0500
commita95d500a02dc29d1e81f4300cbde74874fb40858 (patch)
tree60294d90130f11a04970956fc1bc22ecb3855e61 /gbz80disasm.py
parent786d4fb35d9cea4976d4ae0363d6bbba4142dcac (diff)
play nice w/ cygwin; undeprecate used command
original-commit-id: 1b54f73323e98b59bfe238fa79a0f8d081d3e5d3
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r--gbz80disasm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py
index b9ddc17..02aa4a4 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -16,7 +16,7 @@ class XRomStr(str):
def load_rom(filename="../baserom.gbc"):
"""loads bytes into memory"""
global rom
- file_handler = open(filename, "r")
+ file_handler = open(filename, "rb")
rom = XRomStr(file_handler.read())
file_handler.close()
return rom
@@ -275,7 +275,7 @@ temp_opt_table = [
[ "LD DE, ?", 0x11, 2 ],
[ "LD HL, ?", 0x21, 2 ],
[ "LD SP, ?", 0x31, 2 ],
-# [ "LD [?], SP", 0x8, 2 ],
+ [ "LD [?], SP", 0x8, 2 ],
[ "LD [?], A", 0xea, 2 ],
[ "NOP", 0x0, 0 ],
[ "OR A", 0xb7, 0 ],