mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Matched most remaining libultra files (#221)
* osPfsIsPlug.c and osContSetCh.c OK * update * __osPfsGetStatus.c OK * removed unused asm * Updated all libultra controller files to use new structs instead of the temporary structs. Added os_pfs.h * controller updates * fixed header guard * Made suggested changes * guLookAt.c OK * commit * __osPfsSelectBank.c OK * osPfsDeleteFile.c OK * pfsreadwritefile.c OK * osPfsFreeBlocks.c OK * cleaned up ospfsfreeblocks * started pfsinitpak.c * pfsallocatefile.c OK * contpfs.c decompiled with 1 non matching * osPfsFindFile.c OK * pfsinitpak.c decompiled. one non-matching * Actually fixed merge conflict * sins.c OK * cosf.c sinf.c and sins.c OK * moved osAfterPreNMI to its own file. Renamed code_801031F0 to contquery.c * pfschecker.c OK * final update and rename * Removed makefile testing thing that i accidentally added * Made suggested changes
This commit is contained in:
parent
e6ca2dfd70
commit
7e195a3562
59 changed files with 1769 additions and 3641 deletions
|
@ -1,3 +1,21 @@
|
|||
#include "libultra_internal.h"
|
||||
#include <ultra64.h>
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/sins/sins.s")
|
||||
#include "sintable.c"
|
||||
|
||||
s16 sins(u16 x) {
|
||||
s16 value;
|
||||
|
||||
x >>= 4;
|
||||
|
||||
if (x & 0x400) {
|
||||
value = sintable[0x3FF - (x & 0x3FF)];
|
||||
} else {
|
||||
value = sintable[x & 0x3FF];
|
||||
}
|
||||
|
||||
if (x & 0x800) {
|
||||
return -value;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue