mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-14 13:34:52 -04:00
8b4808da8a
* TRK full match * remove trk asm * ar done * cleanup some dolphin headers * more dolphin cleanup * cleanup / GD fully matched * almost all of GX fully matched * GX / Mtx full matched * most of OS done * pad done * most of VI * remove asm * forgot couple vec funcs * couple JUtility matches
37 lines
824 B
C
37 lines
824 B
C
/**
|
|
* usr_put.c
|
|
* Description:
|
|
*/
|
|
|
|
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h"
|
|
// #include "dolphin/os.h"
|
|
|
|
// void OSReport(char* fmt, ...) causes extra crclr instruction.
|
|
// look into issue later
|
|
extern void OSReport(char* fmt);
|
|
|
|
/* 8036DB14-8036DB9C 368454 0088+00 0/0 2/2 0/0 .text usr_puts_serial */
|
|
BOOL usr_puts_serial(const char* msg) {
|
|
BOOL connect_ = FALSE;
|
|
char c;
|
|
char buf[2];
|
|
|
|
while (!connect_ && (c = *msg++) != '\0') {
|
|
BOOL connect = GetTRKConnected();
|
|
|
|
buf[0] = c;
|
|
buf[1] = '\0';
|
|
|
|
SetTRKConnected(FALSE);
|
|
OSReport(buf);
|
|
|
|
SetTRKConnected(connect);
|
|
connect_ = FALSE;
|
|
}
|
|
|
|
return connect_;
|
|
}
|
|
|
|
/* 8036DB10-8036DB14 368450 0004+00 0/0 1/1 0/0 .text usr_put_initialize */
|
|
void usr_put_initialize(void) {}
|