.
[savezelda.git] / batman / exploit.s
index 6c0ebabdfbe9b96b73732672e8f764c690b2ffe7..ced21342514e86be73b3401d81d1af4db83e5580 100644 (file)
@@ -27,7 +27,7 @@ start:
        # the save file.
 
        lis 3,main@h ; ori 3,3,main@l ; addi 5,3,-4
-       lis 4,retadr@h ; ori 4,4,retadr@l-4
+       lis 4,(retadr-4)@h ; ori 4,4,(retadr-4)@l
        # Calculate proper offset for the loader in memory
 0:     lbzu 0,4(4); cmpwi 0,0x60 ; beq 0b
        addi 4,4,-4; addi 4,4,end-start