X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=savezelda.git;a=blobdiff_plain;f=lego%2Fhead.s;fp=lego%2Fhead.s;h=0232fd03eca30ab807ef03d35625930a705fb32d;hp=0000000000000000000000000000000000000000;hb=e1ede7aa2cb1840add9ba88901c7495deb2b37e3;hpb=15edfaae0fe106910d059e91f8cb4f691cc50da4 diff --git a/lego/head.s b/lego/head.s new file mode 100644 index 0000000..0232fd0 --- /dev/null +++ b/lego/head.s @@ -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)