Wrap these with #ifdef BKPT_SUPPORT
This commit is contained in:
parent
21c08e9d9f
commit
19aae231c0
|
@ -56,7 +56,9 @@ void agbPrintFlush()
|
||||||
|
|
||||||
uint32_t address = (debuggerReadHalfWord(0x9fe20fa) << 16);
|
uint32_t address = (debuggerReadHalfWord(0x9fe20fa) << 16);
|
||||||
if (address != 0xfd0000 && address != 0x1fd0000) {
|
if (address != 0xfd0000 && address != 0x1fd0000) {
|
||||||
|
#ifdef BKPT_SUPPORT
|
||||||
dbgOutput("Did you forget to call AGBPrintInit?\n", 0);
|
dbgOutput("Did you forget to call AGBPrintInit?\n", 0);
|
||||||
|
#endif
|
||||||
// get rid of the text otherwise we will continue to be called
|
// get rid of the text otherwise we will continue to be called
|
||||||
debuggerWriteHalfWord(0x9fe20fc, put);
|
debuggerWriteHalfWord(0x9fe20fc, put);
|
||||||
return;
|
return;
|
||||||
|
@ -66,12 +68,13 @@ void agbPrintFlush()
|
||||||
|
|
||||||
while (get != put) {
|
while (get != put) {
|
||||||
char c = data[get++];
|
char c = data[get++];
|
||||||
|
#ifdef BKPT_SUPPORT
|
||||||
char s[2];
|
char s[2];
|
||||||
s[0] = c;
|
s[0] = c;
|
||||||
s[1] = 0;
|
s[1] = 0;
|
||||||
|
|
||||||
if (systemVerbose & VERBOSE_AGBPRINT)
|
if (systemVerbose & VERBOSE_AGBPRINT)
|
||||||
dbgOutput(s, 0);
|
dbgOutput(s, 0);
|
||||||
|
#endif
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,8 +87,10 @@ int systemFrameSkip = 0;
|
||||||
int systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED;
|
int systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED;
|
||||||
int emulating = 0;
|
int emulating = 0;
|
||||||
|
|
||||||
|
#ifdef BKPT_SUPPORT
|
||||||
void (*dbgOutput)(const char* s, uint32_t addr);
|
void (*dbgOutput)(const char* s, uint32_t addr);
|
||||||
void (*dbgSignal)(int sig, int number);
|
void (*dbgSignal)(int sig, int number);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Dummy vars/funcs for serial io emulation without LINK communication related stuff
|
// Dummy vars/funcs for serial io emulation without LINK communication related stuff
|
||||||
#ifndef NO_LINK
|
#ifndef NO_LINK
|
||||||
|
|
Loading…
Reference in New Issue