gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Scrolling and Text ...

#51795 - Tomik - Tue Aug 23, 2005 4:18 pm

Hello everybody,
I am Thomas from germany and a newbie in GBA programming.
So i Have got three questions:

1:
How can I realize a scrolling function. Easyly I want to make a dot on the left side of the screen and this dot should go over to the right side, slowly by itself ! only one time ! can someone help me out??

2:
How can I display text to the GBA SP display? i dont want to make a own graphic because i want to connect a 8bit dip switch (256) to the gba !

3:
why does my programm run on every emulator but not on the GBA SP?

I know it s very much for my FIRST time, but thanks to all who can help me.

Thomas

PS: sorry for my english :)

#51875 - tepples - Wed Aug 24, 2005 6:46 am

Tomik wrote:
How can I realize a scrolling function. Easyly I want to make a dot on the left side of the screen and this dot should go over to the right side, slowly by itself ! only one time ! can someone help me out??

Do you want to do this in tile mode, rotation mode, or bitmap mode?

Quote:
How can I display text to the GBA SP display?

Try AGBTTY, which gives you agbtty_puts(). To format numbers, use siprintf() (or posprintf()) followed by agbtty_puts().

Quote:
why does my programm run on every emulator but not on the GBA SP?

"Not run" doesn't help. How does it misbehave? Does it just freeze at a white screen?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.


Last edited by tepples on Wed Aug 24, 2005 6:48 am; edited 1 time in total

#51876 - yamaneko - Wed Aug 24, 2005 6:47 am

Hum...

The answer will take an hour to write.
So please find and read tutorial .

#51882 - Tomik - Wed Aug 24, 2005 8:24 am

Thanks tepples:
So when I write the programm in my flash (which does work) the nintendo logo is not readable, but there is something. So if theres no flash, theres no nintendo logo, that means the GBA SP sees something on the flash ....
you know help??

Thomas

#51905 - tepples - Wed Aug 24, 2005 1:55 pm

Unreadable Nintendo logo means that the 156-byte "magic cookie" isn't correct. To fix this, run 'gbafix' on the .gba file after you've objcopy'd it.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.