diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2023-08-09 21:21:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 21:21:12 -0400 |
| commit | fd54debbf2d18c7c9bfdd10bd42aab5abe9266a2 (patch) | |
| tree | 4dc24ddd4fdc4210022b7d9a8c631d45020e3d11 /include/libu64 | |
| parent | 56b4e612cc8fc1af7c051592e850ca1aac02e39e (diff) | |
`libu64.a` identification (#43)
* identify debug
* identify gfxprint.c and gfxprint_data.c
* pad.c
* fix
* stackcheck
* loadfragment and logseverity
* mtxconv
* comment
* Revert "loadfragment and logseverity"
This reverts commit 34d8214aa3869a518db8c9b59dc06361e8507418.
* review
* fix
* another fix
* fix
Diffstat (limited to 'include/libu64')
| -rw-r--r-- | include/libu64/debug.h | 10 | ||||
| -rw-r--r-- | include/libu64/gfxprint.h | 30 | ||||
| -rw-r--r-- | include/libu64/mtxconv.h | 9 | ||||
| -rw-r--r-- | include/libu64/pad.h | 31 | ||||
| -rw-r--r-- | include/libu64/stackcheck.h | 22 |
5 files changed, 102 insertions, 0 deletions
diff --git a/include/libu64/debug.h b/include/libu64/debug.h new file mode 100644 index 0000000..9eccc2c --- /dev/null +++ b/include/libu64/debug.h @@ -0,0 +1,10 @@ +#ifndef LIBU64_DEBUG_H +#define LIBU64_DEBUG_H + +#include "ultra64.h" +#include "attributes.h" + +void _dbg_hungup(const char *filename, int line) NORETURN; +// void Reset(); + +#endif diff --git a/include/libu64/gfxprint.h b/include/libu64/gfxprint.h new file mode 100644 index 0000000..8391b4b --- /dev/null +++ b/include/libu64/gfxprint.h @@ -0,0 +1,30 @@ +#ifndef LIBU64_GFX_PRINT_H +#define LIBU64_GFX_PRINT_H + +#include "ultra64.h" + +// void gfxprint_setup(); +// void gfxprint_color(); +// void gfxprint_locate(); +// void gfxprint_locate8x8(); +// void gfxprint_setoffset(); +// void gfxprint_putc1(); +// void gfxprint_putc(); +// void gfxprint_write(); +// void gfxprint_puts(); +// void gfxprint_prout(); +// void gfxprint_init(); +// void gfxprint_cleanup(); +// void gfxprint_open(); +// void gfxprint_close(); +// void gfxprint_vprintf(); +// void gfxprint_printf(); + +// extern UNK_TYPE gfxprint_moji_tlut; +// extern UNK_TYPE gfxprint_rainbow_tlut; +// extern UNK_TYPE gfxprint_rainbow_txtr; +// extern UNK_TYPE gfxprint_font; + +// extern UNK_TYPE __gfxprint_default_flags; + +#endif diff --git a/include/libu64/mtxconv.h b/include/libu64/mtxconv.h new file mode 100644 index 0000000..9a0c3cd --- /dev/null +++ b/include/libu64/mtxconv.h @@ -0,0 +1,9 @@ +#ifndef LIBU64_MTX_CONV_H +#define LIBU64_MTX_CONV_H + +#include "ultra64.h" + +// void MtxConv_F2L(); +// void MtxConv_L2F(); + +#endif diff --git a/include/libu64/pad.h b/include/libu64/pad.h new file mode 100644 index 0000000..8bc9c6f --- /dev/null +++ b/include/libu64/pad.h @@ -0,0 +1,31 @@ +#ifndef LIBU64_PAD_H +#define LIBU64_PAD_H + +#include "ultra64.h" + +typedef struct Input { + /* 0x00 */ OSContPad cur; + /* 0x06 */ OSContPad prev; + /* 0x0C */ OSContPad press; // X/Y store delta from last frame + /* 0x12 */ OSContPad rel; // X/Y store adjusted +} Input; // size = 0x18 + +void pad_init(Input* input); +void pad_cleanup(void); +void pad_flush(Input* input); +s32 pad_push_only(Input* input, u16 value); +s32 pad_push_also(Input* input, u16 key); +s32 pad_on_trigger(Input* input, u16 key); +s32 pad_off_trigger(Input* input, u16 key); +u16 pad_button(Input* input); +u16 pad_trigger(Input* input); +s8 pad_physical_stick_x(Input* input); +s8 pad_physical_stick_y(Input* input); +void pad_set_logical_stick(Input* input, s32 x, s32 y); +s8 pad_logical_stick_x(Input* input); +s8 pad_logical_stick_y(Input* input); +s8 pad_stick_x(Input* input); +s8 pad_stick_y(Input* input); +void pad_correct_stick(Input* input); + +#endif diff --git a/include/libu64/stackcheck.h b/include/libu64/stackcheck.h new file mode 100644 index 0000000..1ee3823 --- /dev/null +++ b/include/libu64/stackcheck.h @@ -0,0 +1,22 @@ +#ifndef LIBU64_STACK_CHECK_H +#define LIBU64_STACK_CHECK_H + +#include "ultra64.h" + +typedef struct StackEntry { + /* 0x00 */ struct StackEntry* next; + /* 0x04 */ struct StackEntry* prev; + /* 0x08 */ u32 head; + /* 0x0C */ u32 tail; + /* 0x10 */ u32 initValue; + /* 0x14 */ s32 minSpace; + /* 0x18 */ const char* name; +} StackEntry; // size = 0x1C + +void StackCheck_Init(StackEntry* entry, void* stackTop, void* stackBottom, u32 initValue, s32 minSpace, const char* name); +// void StackCheck_Cleanup(); +// void StackCheck_GetState(); +// void StackCheck_CheckAll(); +void StackCheck_Check(StackEntry* entry); + +#endif |
