summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2020-03-22 23:08:37 -0400
committerGitHub <noreply@github.com>2020-03-22 23:08:37 -0400
commitd879f2acb02924b75552487db291fa3e0397d86c (patch)
treec6fea3a80ef1a22514340d63be0216fb8521b1ae /src/code/z_debug.c
parent923d1063b66aa2bbc6cd3686fbd574838daed526 (diff)
parent7c9291c59ecfe38660bdf546b33dd338c105bc09 (diff)
Merge pull request #24 from Roman971/non-matchings
Fix remaining non matchings and Update progress script
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index e0c1c4f9f..e5bc9199f 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -1,8 +1,5 @@
#include <ultra64.h>
#include <global.h>
-#include <z64.h>
-#include <color.h>
-#include <regs.h>
#include <PR/os_cont.h>
typedef struct {
@@ -60,29 +57,24 @@ void func_800636C0() {
void func_8006375C(s32 arg0, s32 arg1, float* d_80855320) {
}
-#ifdef NON_MATCHING // regalloc
// Copy Camera Debugger Text
void func_8006376C(u8 x, u8 y, u8 colorId, const char* text) {
PrintTextBuffer* buf;
char* bufText;
- s16 i; // v1
+ s16 i;
buf = &D_8015FA98[D_8011E0B0];
if (D_8011E0B0 < 0x16) {
-
buf->x = x;
buf->y = y;
buf->colorId = colorId;
i = 0;
- bufText = buf->text + 1;
-
- if (*buf->text = *text++) {
- do
- if (i++ > 0x14) {
- break;
- }
- while (*bufText++ = *text++);
+ bufText = buf->text;
+ while (*bufText++ = *text++) {
+ if (i++ > 0x14) {
+ break;
+ }
}
*bufText = '\0';
@@ -90,10 +82,6 @@ void func_8006376C(u8 x, u8 y, u8 colorId, const char* text) {
}
}
-#else
-#pragma GLOBAL_ASM("asm/non_matchings/code/z_debug/func_8006376C.s")
-#endif
-
// Draw Text
void func_80063828(GfxPrint* gfxPrint) {
s32 i;