Search found 354 matches

by elhobbs
Thu Jun 13, 2013 1:41 pm
Forum: GBA Development
Topic: Running out of channels (on GBA)
Replies: 16
Views: 18870

Re: Running out of channels (on GBA)

are you sure this is referring to the number of channels and not the size of an internal data structure?
by elhobbs
Wed Jun 05, 2013 7:43 pm
Forum: Off Topic
Topic: Help with Arrays
Replies: 9
Views: 12793

Re: Help with Arrays

before you go too far down this path - a better question would be why would you want to do this? just store it in a byte array and be done with it. a common situation where this type of manipulation occurs is to write to a framebuffer in vram for updating the display. the ds can use a 16 bit display...
by elhobbs
Wed Jun 05, 2013 1:33 pm
Forum: Off Topic
Topic: Help with Arrays
Replies: 9
Views: 12793

Re: Help with Arrays

this can vary by platform, but common sizes are: char 8 bit short 16 bit int 32 bit you can use sizeof(int) to see the size in bytes (a byte being 8 bits always). printf("size of unsigned short: %d\n",sizeof(unsigned short)); you have to use base types to create declarations or structs or classes - ...
by elhobbs
Tue May 07, 2013 2:24 am
Forum: DS/DSi Development
Topic: Which one is more better, directly setting variables or API?
Replies: 3
Views: 5927

Re: Which one is more better, directly setting variables or

a few questions: why do you want to optimize your code? Is it running too slowly? Is so, then where is it running too slowly? Why do the think it is running slowly in this section? Are you running out of memory? If so, then how much free memory do you have, and how much more do you need? running fas...
by elhobbs
Wed Apr 24, 2013 11:14 pm
Forum: DS/DSi Development
Topic: Help with nds virtual keyboard examples
Replies: 5
Views: 6508

Re: Help with nds virtual keyboard examples

Try desmume instead - or better yet, a real ds!
by elhobbs
Tue Apr 23, 2013 5:01 pm
Forum: DS/DSi Development
Topic: Help with nds virtual keyboard examples
Replies: 5
Views: 6508

Re: Help with nds virtual keyboard examples

keyboardDemoInit installs the keyboard on the subscreen for layer 3. keyboardInit(NULL, 3, BgType_Text4bpp, BgSize_T_256x512, defaultKeyboard.mapBase, defaultKeyboard.tileBase, false, true); It is hard to give advice for layers and map/tile bases without knowing what (if anything) you want to use - ...
by elhobbs
Thu Apr 11, 2013 1:15 am
Forum: DS/DSi Development
Topic: Rotation example
Replies: 5
Views: 5881

Re: Rotation example

The 256_color_bmp example may be a better example to look at. The make file has rules for folders and for files based on extensions. It has rules for processing graphics. I think the rotation example may be older and just references the manually processed graphics.
by elhobbs
Mon Feb 25, 2013 10:50 pm
Forum: DS/DSi Development
Topic: Problem Setting Up Backgrounds and VRAM
Replies: 4
Views: 8273

Re: Problem Setting Up Backgrounds and VRAM

you may want to take a look at this in an emulator like desmume. It may be something as simple as layer 1 being active/visible and showing garbage. with an emulator you can look at each layer individually.
by elhobbs
Thu Feb 14, 2013 2:17 pm
Forum: DS/DSi Development
Topic: soundPlayX crashes randomly?
Replies: 4
Views: 5405

Re: soundPlayX crashes randomly?

out of curiosity - can you give a little detail about the context where you are calling these functions? Is this taking place in an interrupt handler do you have any error codes - are you using the default exception handler which would dump the stack and registers?
by elhobbs
Tue Dec 18, 2012 9:57 pm
Forum: DS/DSi Development
Topic: BG flicker problem
Replies: 4
Views: 7724

Re: BG flicker problem

call swiWaitForVBlank then update your background