summaryrefslogtreecommitdiff
path: root/gbz80disasm.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-05-21 16:43:54 -0400
committeryenatch <yenatch@gmail.com>2013-05-21 16:43:54 -0400
commit85aad5c408548bc774eab41b47c42a4ab409df15 (patch)
treef7feff8976fcaad95353a7e935dd36f3afc02649 /gbz80disasm.py
parentc56a6e1eab30f9b58e4c8889e63db58c0c27e24c (diff)
gbz80disasm: rgbds uses brackets for ld hl, sp+x
original-commit-id: 399925fff577cf11a77193d997d2bf19ee72aa04
Diffstat (limited to 'gbz80disasm.py')
-rw-r--r--gbz80disasm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbz80disasm.py b/gbz80disasm.py
index 2e21f8d..c1d129c 100644
--- a/gbz80disasm.py
+++ b/gbz80disasm.py
@@ -253,7 +253,8 @@ temp_opt_table = [
[ "LD [HL], H", 0x74, 0 ],
[ "LD [HLI], A", 0x22, 0 ],
[ "LD [HL], L", 0x75, 0 ],
- [ "LD HL, SP+x", 0xf8, 1 ],
+# [ "LD HL, SP+x", 0xf8, 1 ], # rgbds uses [sp+x]
+ [ "LD HL, [SP+x]", 0xf8, 1 ],
[ "LD [HL], x", 0x36, 1 ],
[ "LD H, x", 0x26, 1 ],
# [ "LDI A, [HL]", 0x2a, 0 ],