savezelda/lego/head.s

27 lines
732 B
ArmAsm
Raw Normal View History

2009-06-04 09:17:38 +02:00
.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)