sub engine LCD access
Posted: Sat May 30, 2009 11:25 pm
Hi there, I'm just starting to get into DS coding, and I'm making a little paint program.
This isn't about that though, what it is about is me trying to wrestle control of the sub engine.
Is there any way to get the sub engine to accept a raw LCD screenbuffer?
I've done it on the top but the bottom seems... reluctant. I know I could set it to use the main engine for the bottom screen but then I'm left trying to get direct LCD control on the TOP screen.
My ides sort of needs both simultaneously. Is that even possible?
Stripping out the unneeded parts, the sequence I'm essentially doing is:
vramSetMainBanks(VRAM_A_LCD, VRAM_B_LCD, VRAM_C_LCD, VRAM_D_LCD);
videoSetMode(MODE_FB1);
videoSetModeSub(MODE_FB2);
//do stuff on VRAM_C
videoSetMode(MODE_FB3);
//do stuff on VRAM_A
videoSetModeSub(MODE_FB1);
//do stuff on VRAM_B
and so on. I'm sort of doing a pass the parcel with the unused vram acting as my working buffer.
it displays just fine on the main engine but my sub engine screen stays resolutely blank.
Any advice?
-T4C
This isn't about that though, what it is about is me trying to wrestle control of the sub engine.
Is there any way to get the sub engine to accept a raw LCD screenbuffer?
I've done it on the top but the bottom seems... reluctant. I know I could set it to use the main engine for the bottom screen but then I'm left trying to get direct LCD control on the TOP screen.
My ides sort of needs both simultaneously. Is that even possible?
Stripping out the unneeded parts, the sequence I'm essentially doing is:
vramSetMainBanks(VRAM_A_LCD, VRAM_B_LCD, VRAM_C_LCD, VRAM_D_LCD);
videoSetMode(MODE_FB1);
videoSetModeSub(MODE_FB2);
//do stuff on VRAM_C
videoSetMode(MODE_FB3);
//do stuff on VRAM_A
videoSetModeSub(MODE_FB1);
//do stuff on VRAM_B
and so on. I'm sort of doing a pass the parcel with the unused vram acting as my working buffer.
it displays just fine on the main engine but my sub engine screen stays resolutely blank.
Any advice?
-T4C