LEGO Indiana Jones
[savezelda.git] / lego / head.s
diff --git a/lego/head.s b/lego/head.s
new file mode 100644 (file)
index 0000000..0232fd0
--- /dev/null
@@ -0,0 +1,26 @@
+       .section ".start", "ax"
+
+       # FIXME
+       bptr = 0x806bdc48
+
+0:
+       .incbin "head.b"
+
+       # Smack the stack.
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
+       .long 0x11111111
+
+       # Return address; namely...
+       .long 0x805b0f30, 0x11111111, 0x11111111, 0x11111111
+
+       # Here.
+       lis 3,bptr@ha ; lwz 3,bptr@l(3) ; addis 3,3,1 ; mtctr 3 ; bctr
+
+       .fill 0x10000 - (. - 0b)