diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 17:03:51 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 17:03:51 -0500 |
commit | 5dd7baee5e9983c3a8199c785f276b600bd6bd93 (patch) | |
tree | dcbdd71904be1b20178f763c03ee35bfe5d4c5f4 /src | |
parent | d07e8b24fd20202f578e367533221586c585a7e5 (diff) |
let the user deal with nogbaprint, forget this
Diffstat (limited to 'src')
-rw-r--r-- | src/isagbprn.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 |