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.

DS Flash Equipment > supercard lite

#153915 - ghuldan - Tue Apr 08, 2008 10:46 am

Hi everyone,

I tried to put my homebrew on a slot2 supercard lite, using last dldi patch avalaible on dldi wiki (January 2007).
My homebrew is using lifat and Palib and working fine on Desmume.
On the top screen, i write info with PA_outputText ;
On the bottom screen, i use tiled background, and bitmap sprites.
Every piece of ressource is loaded with libfat (bg, sprites etc ...)
I only use palib for the initSystem, printf and WaitForVBl for now : ressources (OAM, VRAM etc ...) are updated with my code.

What i get on DS :
- libfat works fine : all is loaded
- Sprites appears but for each line, a black line is drawn (so half of the sprites is shown)
- Background are not displayed but are loaded (i have clues).
- Nothing on top screen appears.

I guess unaligned data could explain some of the issues but i can find any newer DLDI patch.
So any clue ?

#153916 - Rajveer - Tue Apr 08, 2008 11:13 am

If that's all you use PALib for, then you can replace PA_Out with normal printf and escape codes, replace WaitForVBl with swiWaitForVBlank, and initialise the system yourself. That way you can get rid of PALib all together and check if that was giving you problems.

#153967 - Doom5 - Tue Apr 08, 2008 7:02 pm

Use http://blog.dev-scene.com/barni/2007/08/28/7/ this DLDI driver. It fixed unaligned r/w on my SC Lite.