Convert some libultra .c files to .s

This commit is contained in:
Ryan Dwyer
2021-03-16 21:21:47 +10:00
parent aafd64886c
commit 073c5e8d67
16 changed files with 65 additions and 71 deletions
-7
View File
@@ -1,7 +0,0 @@
#include <ultra64.h>
GLOBAL_ASM(
glabel sqrtf
/* 4a5d0: 03e00008 */ jr $ra
/* 4a5d4: 46006004 */ sqrt.s $f0,$f12
);
+7
View File
@@ -0,0 +1,7 @@
#include "asm_helper.h"
.text
LEAF(sqrtf)
sqrt.s $f0, $f12
jr ra
END(sqrtf)
-9
View File
@@ -1,9 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel __osGetCause
/* 4b160: 40026800 */ mfc0 $v0,$13
/* 4b164: 03e00008 */ jr $ra
/* 4b168: 00000000 */ nop
);
+7
View File
@@ -0,0 +1,7 @@
#include "asm_helper.h"
.text
LEAF(__osGetCause)
STAY2(mfc0 v0, C0_CAUSE)
jr ra
END(__osGetCause)
-9
View File
@@ -1,9 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel osGetCount
/* 48510: 40024800 */ mfc0 $v0,$9
/* 48514: 03e00008 */ jr $ra
/* 48518: 00000000 */ nop
);
+7
View File
@@ -0,0 +1,7 @@
#include "asm_helper.h"
.text
LEAF(osGetCount)
STAY2(mfc0 v0, C0_COUNT)
jr ra
END(osGetCount)
-8
View File
@@ -1,8 +0,0 @@
#include <ultra64.h>
GLOBAL_ASM(
glabel __osGetFpcCsr
/* 481d0: 4442f800 */ cfc1 $v0,$31
/* 481d4: 03e00008 */ jr $ra
/* 481d8: 00000000 */ nop
);
+7
View File
@@ -0,0 +1,7 @@
#include "asm_helper.h"
.text
LEAF(__osGetFpcCsr)
STAY2(cfc1 v0, $31)
jr ra
END(__osGetFpcCsr)
-9
View File
@@ -1,9 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel __osGetSR
/* 4acd0: 40026000 */ mfc0 $v0,$12
/* 4acd4: 03e00008 */ jr $ra
/* 4acd8: 00000000 */ nop
);
+7
View File
@@ -0,0 +1,7 @@
#include "asm_helper.h"
.text
LEAF(__osGetSR)
STAY2(mfc0 v0, C0_SR)
jr ra
END(__osGetSR)
-9
View File
@@ -1,9 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel __osSetCompare
/* 51880: 40845800 */ mtc0 $a0,$11
/* 51884: 03e00008 */ jr $ra
/* 51888: 00000000 */ nop
);
+9
View File
@@ -0,0 +1,9 @@
#include "asm_helper.h"
.set noreorder
.text
LEAF(__osSetCompare)
mtc0 a0, C0_COMPARE
jr ra
nop
END(__osSetCompare)
-10
View File
@@ -1,10 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel __osSetFpcCsr
/* 481e0: 4442f800 */ cfc1 $v0,$31
/* 481e4: 44c4f800 */ ctc1 $a0,$31
/* 481e8: 03e00008 */ jr $ra
/* 481ec: 00000000 */ nop
);
+11
View File
@@ -0,0 +1,11 @@
#include "asm_helper.h"
.set noreorder
.text
LEAF(__osSetFpcCsr)
cfc1 v0, $31
ctc1 a0, $31
jr ra
nop
END(__osSetFpcCsr)
-10
View File
@@ -1,10 +0,0 @@
#include <libultra_internal.h>
#include "data.h"
GLOBAL_ASM(
glabel __osSetSR
/* 4acc0: 40846000 */ mtc0 $a0,$12
/* 4acc4: 00000000 */ nop
/* 4acc8: 03e00008 */ jr $ra
/* 4accc: 00000000 */ nop
);
+10
View File
@@ -0,0 +1,10 @@
#include "asm_helper.h"
.set noreorder
.text
LEAF(__osSetSR)
mtc0 a0, C0_SR
nop
jr ra
nop
END(__osSetSR)