From 5dd7baee5e9983c3a8199c785f276b600bd6bd93 Mon Sep 17 00:00:00 2001 From: ProjectRevoTPP Date: Mon, 8 Jan 2018 17:03:51 -0500 Subject: let the user deal with nogbaprint, forget this --- src/isagbprn.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/isagbprn.c b/src/isagbprn.c index 18d342162..5c897f16b 100644 --- a/src/isagbprn.c +++ b/src/isagbprn.c @@ -9,6 +9,11 @@ #define AGB_PRINT_PROTECT_ADDR 0x9FE2FFE #define WSCNT_DATA (WAITCNT_PHI_OUT_16MHZ | WAITCNT_WS0_S_2 | WAITCNT_WS0_N_4) +// for auto no$gba support, the string "no$gba" should be at this address. +// except it's not, blame Martin, hence I'm letting the user deal with this nonsense. +#define NOGBAIDADDR 0x4FFFA00 +#define NOGBAPRINTADDR 0x4FFFA14 + struct AGBPrintStruct { u16 m_nRequest; @@ -151,4 +156,12 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP } } +// TODO: Find a way to seamlessly support no$gba without shit hack defines +// nogba print function +/* +void NOGBAPrint(const char *pBuf) +{ + *(volatile u32*)NOGBAPRINTADDR = (u32)pBuf; +}*/ + #endif -- cgit v1.2.3