Renamed old to new

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@701 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2010-01-31 12:58:44 +00:00
parent 8e56002a55
commit a8e50fa8cc
7 changed files with 449 additions and 546 deletions
+9 -4
View File
@@ -13,13 +13,16 @@ void _exc_break(void)
);
}
void _exc_syscall(void)
void _exc_syscall(UINT32 code, UINT32 arg)
{
__asm
(
".set noreorder\n"
"move $v0, %[code]\n"
"move $a0, %[arg]\n"
"syscall\n"
".set reorder\n"
:
: [code] "r" (code), [arg] "r" (arg)
: "v0", "a0"
);
}
@@ -226,7 +229,9 @@ int main(void)
break;
case 4:
_exc_syscall();
_exc_syscall(4, (UINT32)((char*)"Hallo Syscall ("));
_exc_syscall(1, 12345678);
_exc_syscall(4, (UINT32)((char*)")\n"));
break;
case 5: