. batman
authorBernhard Urban <lewurm@gmail.com>
Wed, 26 Jan 2011 21:23:20 +0000 (22:23 +0100)
committerBernhard Urban <lewurm@gmail.com>
Thu, 27 Jan 2011 11:36:08 +0000 (12:36 +0100)
batman/exploit.s
batman/make-title-bin.pl

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
index a3c4b752a5eaf72d4871a01f14aff8d312ea4736..639905ddcd347097d165c90bfdf1fe7bab8fc86b 100755 (executable)
@@ -9,7 +9,7 @@ sub printline {
        print $x;
 }
 
-$name = "\"Bathaxx\" by lewurm";
+$name = '"Bathaxx" by lewurm';
 $version = `cat ../.version`;
 
 printline $name;