Search found 353 matches

by elhobbs
Wed Dec 10, 2014 5:29 pm
Forum: Off Topic
Topic: why C
Replies: 2
Views: 5606

Re: why C

for the 3ds I do not think that it really matters. I think the issue is primarily aimed at more resource constrained devices like the gba or even the ds - be that limited amounts of ram or memory access issues, like not having byte addressable memory for certain regions. I suspect the libraries are ...
by elhobbs
Fri Oct 31, 2014 7:18 pm
Forum: DS Development
Topic: What is going on on ARM7 CPU?
Replies: 3
Views: 8335

Re: What is going on on ARM7 CPU?

audio, wifi, touchscreen, and some of the buttons can only be accessed from the arm7. These features are made accessible to arm9 by the FIFO IPC communications that are built into libnds. so the arm9 and arm7 code need to be kept in sync. The danger with developing for the arm7 is that you might bre...
by elhobbs
Wed Oct 22, 2014 1:31 am
Forum: DS Development
Topic: Using quaternions
Replies: 15
Views: 12807

Re: Using quaternions

why do you have a mixture of atan2 (which is looking for doubles) and atan2Lerp(which is looking for fixed point)?
by elhobbs
Mon Oct 20, 2014 5:43 pm
Forum: DS Development
Topic: Using quaternions
Replies: 15
Views: 12807

Re: Using quaternions

you can use the version in <math.h> - you will need to add libm to your make file. add -lm to LIBS after -lnds9
you will need to do some conversion of input/outputs to/from fixed/float etc.
by elhobbs
Sat Oct 18, 2014 8:50 pm
Forum: DS Development
Topic: Using quaternions
Replies: 15
Views: 12807

Re: Using quaternions

I think your main issue is dealing with fixed point numbers. There is no automatic conversion to and from floats - and you have a lot of mixing of the two in your code. I have not fixed all of the code - just the bare minimum needed to get the teapot to spin around the y axis. you should be able to ...
by elhobbs
Sat Oct 18, 2014 2:18 pm
Forum: DS Development
Topic: Using quaternions
Replies: 15
Views: 12807

Re: Using quaternions

do you have a sample with code that you could share with people?
by elhobbs
Tue Oct 14, 2014 4:13 pm
Forum: devkitARM
Topic: Multithread compilation and maxmod
Replies: 2
Views: 6129

Re: Multithread compilation and maxmod

I am by no means a makefile expert, but it sounds like you might need a build rule for the header with a dependency on the soundbank - or some other dependency to make the sound bank processed first. this might fall into the category of - if you need to ask the question then you probably should not ...
by elhobbs
Mon Oct 13, 2014 2:34 pm
Forum: DS Development
Topic: "garbage" in the output of grit on mac
Replies: 3
Views: 6571

Re: "garbage" in the output of grit on mac

is the "-e" parameter for echo supported on a mac? is this used in your other makefiles?
by elhobbs
Wed Sep 10, 2014 7:27 pm
Forum: GBA Development
Topic: Question regarding GBA initialization
Replies: 1
Views: 5152

Re: Question regarding GBA initialization

I want to say that dma is only faster for ram to vram copies whereas stmia/ldmia is faster for everything else... I may be thinking of the ds though.
by elhobbs
Sun Jul 27, 2014 2:36 am
Forum: DS Development
Topic: volatile int for frame count
Replies: 1
Views: 4175

Re: volatile int for frame count

since this variable is updated in an irq handler it needs to be read from memory each time in the main loop. without the volatile declaration it would most likely be read once into a register and the updates would be never be seen.