mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-06-21 22:54:39 -04:00
make configure not ugly, implement usr_put
This commit is contained in:
@@ -5,7 +5,7 @@ dolphin/__ppc_eabi_init.cpp:
|
||||
.text: [0x8007fdfc, 0x8007fe90]
|
||||
runtime/__mem.c:
|
||||
.init: [0x800033a8, 0x800034e0]
|
||||
TRK/mem_TRK.c:
|
||||
TRK/init/mem_TRK.c:
|
||||
.init: [0x800034e0, 0x80003534]
|
||||
asm/__exception.s:
|
||||
.init: [0x80003534, 0x80005468]
|
||||
@@ -198,6 +198,8 @@ TRK/nubevent.c:
|
||||
# .text: [0x800A2314, 0x800A2494]
|
||||
# .rodata: [0x800AF750, 0x800AF770]
|
||||
# .bss: [0x802095F0, 0x802095F8]
|
||||
#TRK/usr_put.c:
|
||||
# .text: [0x800A3468, 0x800A34F4]
|
||||
#TRK/dispatch.c:
|
||||
# .text: [0x800A34F4, 0x800A3590]
|
||||
# .data: [0x800E2128, 0x800E21B0]
|
||||
|
||||
+1
-1
@@ -647,7 +647,7 @@ class CSource(Source):
|
||||
self.cc = c.CC
|
||||
self.cflags = c.DOL_CPPFLAGS
|
||||
self.frank = False
|
||||
elif path == "src/TRK/mainloop.c" or path == "src/TRK/nubevent.c" or path == "src/TRK/nubinit.c" or path == "src/TRK/dispatch.c":
|
||||
elif path.startswith("src/TRK") and not path.startswith("src/TRK/init"):
|
||||
self.cc = c.CC
|
||||
self.cflags = c.DOL_TRK_CFLAGS
|
||||
self.frank = False
|
||||
|
||||
@@ -25,14 +25,8 @@ TRKResult TRKDoContinue(MessageBuffer*);
|
||||
TRKResult TRKDoStep(MessageBuffer*);
|
||||
TRKResult TRKDoStop(MessageBuffer*);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BOOL GetTRKConnected();
|
||||
void SetTRKConnected(BOOL);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
#include "TRK/usr_put.h"
|
||||
#include "TRK/msghndlr.h"
|
||||
|
||||
extern void OSReport(const char*);
|
||||
|
||||
TRKResult usr_puts_serial(const char* putString){
|
||||
TRKResult res = 0;
|
||||
char tstring;
|
||||
char buff[2];
|
||||
int con;
|
||||
while ((res == 0) && (tstring = *putString++) != 0){
|
||||
con = GetTRKConnected();
|
||||
buff[0] = tstring;
|
||||
buff[1] = '\0';
|
||||
SetTRKConnected(0);
|
||||
OSReport(buff);
|
||||
SetTRKConnected(con);
|
||||
res = 0;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
TRKResult usr_put_initialize(){
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user