HalfNelson
Still Fresh
- Joined
- May 26, 2004
- Messages
- 16
Gday Guys,
I'm having a little trouble spotting a bug while using Mr Mirko's fantastic SDK. Im trying to use the gp_drawString() function but am having mixed results.
This code does not work !!!!
with gcc3.3.0 from mr mirko's website or 3.4.0 from mr mirkos website under windows
yet if it change the line "#undef fixit" to "#define fixit" it works.
I looked at the disassembly of the file with fixit undefined and it was garbage
any ideas? Or anyone with a working copy of gcc who wants to try it out too?
Uses 0.84 of mirko SDK and mrMirkosdk for windows 2.1 by bobintrees
I'm having a little trouble spotting a bug while using Mr Mirko's fantastic SDK. Im trying to use the gp_drawString() function but am having mixed results.
Code:
#undef fixit
#include <gp32.h>
unsigned short *framebuffer;
void main () {
framebuffer = (u16*) FRAMEBUFFER;
gp_setCpuspeed(33);
gp_initFramebuffer(framebuffer,16,80);
gp_clearFramebuffer16(framebuffer,0xFFFF);
{
#ifdef fixit
char text[80];
sprintf(text,"%x",123);
#endif
gp_drawString(10,123,15,"Hello out there",0xF800,framebuffer);
}
while (1) { }
}
with gcc3.3.0 from mr mirko's website or 3.4.0 from mr mirkos website under windows
yet if it change the line "#undef fixit" to "#define fixit" it works.
I looked at the disassembly of the file with fixit undefined and it was garbage
any ideas? Or anyone with a working copy of gcc who wants to try it out too?
Uses 0.84 of mirko SDK and mrMirkosdk for windows 2.1 by bobintrees