- initial import
git-svn-id: http://moon:8086/svn/mips@1 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// MIPS delay.
|
||||
|
||||
__inline void delay(int loops)
|
||||
{
|
||||
__asm
|
||||
(
|
||||
".set noreorder\n"
|
||||
"1:bnez %[loops], 1b\n"
|
||||
"addiu %[loops], -1\n"
|
||||
".set reorder\n"
|
||||
:
|
||||
: [loops] "r" (loops)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user