Match coss.c (#86)

* Match coss.c

* Remove asm file.

* Update src/libultra_code/coss.c

Co-Authored-By: Lucas Shaw <49287729+shawlucas@users.noreply.github.com>

Co-authored-by: Lucas Shaw <49287729+shawlucas@users.noreply.github.com>
This commit is contained in:
JoshDuMan 2020-04-21 17:40:56 -04:00 committed by GitHub
parent e050319e07
commit b8a0751518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 14 deletions

View File

@ -1,13 +0,0 @@
glabel coss
/* B7B920 80104780 27BDFFE8 */ addiu $sp, $sp, -0x18
/* B7B924 80104784 AFA40018 */ sw $a0, 0x18($sp)
/* B7B928 80104788 00802825 */ move $a1, $a0
/* B7B92C 8010478C 24A44000 */ addiu $a0, $a1, 0x4000
/* B7B930 80104790 AFBF0014 */ sw $ra, 0x14($sp)
/* B7B934 80104794 308EFFFF */ andi $t6, $a0, 0xffff
/* B7B938 80104798 0C040114 */ jal sins
/* B7B93C 8010479C 01C02025 */ move $a0, $t6
/* B7B940 801047A0 8FBF0014 */ lw $ra, 0x14($sp)
/* B7B944 801047A4 27BD0018 */ addiu $sp, $sp, 0x18
/* B7B948 801047A8 03E00008 */ jr $ra
/* B7B94C 801047AC 00000000 */ nop

View File

@ -1,3 +1,6 @@
#include "libultra_internal.h"
#include <global.h>
#pragma GLOBAL_ASM("asm/non_matchings/code/coss/coss.s")
s16 coss(u16 angle) {
return sins(angle + 0x4000);
}