- Bugfix: argc and argv were not correctly set. New introduced bug because of minor change.

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@528 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-10-17 21:46:19 +00:00
parent 08f122c910
commit 6130b4c260
+4 -4
View File
@@ -56,16 +56,16 @@ $install: lw $v0, 0($t1)
jalr $k0 jalr $k0
nop nop
# Set environment
li $a0, 1
la $a1, argv
# Set user-mode # Set user-mode
mfc0 $a0, $12 mfc0 $a0, $12
li $a1, 3 li $a1, 3
or $a0, $a1 or $a0, $a1
mtc0 $a0, $12 mtc0 $a0, $12
# Set environment
li $a0, 1
la $a1, argv
# Call main # Call main
la $k0, main la $k0, main
jalr $k0 jalr $k0