summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/isagbprn.c13
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