From 1b54f73323e98b59bfe238fa79a0f8d081d3e5d3 Mon Sep 17 00:00:00 2001 From: padz Date: Thu, 15 Nov 2012 02:33:02 -0500 Subject: [PATCH] play nice w/ cygwin; undeprecate used command --- extras/gbz80disasm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index b9ddc17fd..02aa4a487 100644 --- a/extras/gbz80disasm.py +++ b/extras/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 ],