savezelda/lego/head.s
Segher Boessenkool e1ede7aa2c LEGO Indiana Jones
2009-09-23 17:40:48 +02:00

27 lines
732 B
ArmAsm

.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)