Are there any working examples of using the SBL libraries without SGL? I am trying to get the following test program to work, but the program just manages to display random characters on the screen. I am using a custom linker script, crto.S, and makefile that works with C++ and the standard run-time library.
I tried the samples that come with the SBL libraries, but they all seem to hang at the Sega logo screen. Loading the file binary files at different address locations did not appear to make a difference.
Code:
#include "sega_dbg.h"
#include "sega_scl.h"
int main(){
Uint16 pad;
//SCL_Vdp2Init();
DBG_Initial (&pad, RGB16_COLOR(31,31,31), 0x0000);
DBG_DisplayOn();
DBG_ClearScreen();
DBG_SetCursol(10, 10);
DBG_Printf("SBL DBG Test");
for(;;);
return(0);
}