From a7387810b9fc9809514f415d6bcc6b6e5b0feabf Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 1 Mar 2009 17:48:44 +0000 Subject: [PATCH] - regsiter zeroise before main() Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@368 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/CPUs/MIPS/bsp/examples/init.S | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/CPUs/MIPS/bsp/examples/init.S b/lib/CPUs/MIPS/bsp/examples/init.S index c1f75d6..dc10005 100644 --- a/lib/CPUs/MIPS/bsp/examples/init.S +++ b/lib/CPUs/MIPS/bsp/examples/init.S @@ -34,12 +34,14 @@ $zeroise: # addiu $8, 4 # jump main - la $8, main - jalr $8 + la $t0, main + jalr $t0 + nop -_terminate: - nop - j _terminate +_terminate: nop + la $t0, exit + jalr $t0 + move $a0, $v0 .set reorder