LEGO Indiana Jones
[savezelda.git] / lego / head.s
1         .section ".start", "ax"
2
3         # FIXME
4         bptr = 0x806bdc48
5
6 0:
7         .incbin "head.b"
8
9         # Smack the stack.
10         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
11         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
12         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
13         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
14         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
15         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
16         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
17         .long 0x11111111, 0x11111111, 0x11111111, 0x11111111
18         .long 0x11111111
19
20         # Return address; namely...
21         .long 0x805b0f30, 0x11111111, 0x11111111, 0x11111111
22
23         # Here.
24         lis 3,bptr@ha ; lwz 3,bptr@l(3) ; addis 3,3,1 ; mtctr 3 ; bctr
25
26         .fill 0x10000 - (. - 0b)