shithub: pokecrystal

Download patch

ref: 399925fff577cf11a77193d997d2bf19ee72aa04
parent: 2236e2793319d1381c244e5d50a185ffa8ec1fc0
author: yenatch <[email protected]>
date: Tue May 21 12:43:54 EDT 2013

gbz80disasm: rgbds uses brackets for ld hl, sp+x

--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -253,7 +253,8 @@
   [ "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 ],