Search found 18 matches

by digithree
Mon May 30, 2011 3:08 pm
Forum: DS/DSi Development
Topic: Saving game data
Replies: 13
Views: 10562

Re: Saving game data

zeromus wrote:that code should work. you must be confused, or you must have no c: drive. unless, of course, by running on PC, you mean, running on an emulator. in which case you are very badly confused.
unhelpful
by digithree
Wed May 11, 2011 8:36 pm
Forum: DS/DSi Development
Topic: Help with fixed point numbers
Replies: 11
Views: 7488

Re: Help with fixed point numbers

The term "sign bit" has a very specific meaning which does not include the sign offset in an integer value. Floating point representation has a sign bit as do some DSP chips, most processors use 2s complement to represent signed numbers. This is neither semantics nor unimportant and drives me nuts ...
by digithree
Tue Apr 05, 2011 3:07 pm
Forum: DS/DSi Development
Topic: Help with fixed point numbers
Replies: 11
Views: 7488

Re: Help with fixed point numbers

Well it seems that negative numbers are stored in signed integers using 2s compliment. Since fixed point numbers are just integers with a scale factor (for a x.y fixed point number the scale is the entire number / 2^y ) they work the same as integers with regards negative number storing. For a nibbl...
by digithree
Tue Mar 29, 2011 10:15 pm
Forum: DS/DSi Development
Topic: Help with fixed point numbers
Replies: 11
Views: 7488

Help with fixed point numbers

If sinLerp and other trig functions return signed values in 4.12, shouldn't one of those bits (the most signifigant bit usually isn't it) be the sign bit? So shouldn't it be 3.12 or 4.11 for a signed number?
by digithree
Tue Mar 29, 2011 10:14 pm
Forum: maxmod
Topic: MaxMod Stream Format
Replies: 2
Views: 4362

Re: MaxMod Stream Format

I suppose that's logical. I'll stick to PCM format then.
by digithree
Mon Mar 28, 2011 1:02 am
Forum: maxmod
Topic: MaxMod Stream Format
Replies: 2
Views: 4362

MaxMod Stream Format

In the MaxMod streaming example the actual sample data is derived from the function sinLerp() which returns a "4.12 fixed point number with the range [-1, 1]". This implies that the stream data format is also in 4.12 fixed format. My question is what is the format for raw sound data to be put in the...
by digithree
Mon Mar 14, 2011 3:41 pm
Forum: DS/DSi Development
Topic: Saving game data
Replies: 13
Views: 10562

Re: Saving game data

Cheers!
by digithree
Fri Mar 11, 2011 2:28 pm
Forum: DS/DSi Development
Topic: Saving game data
Replies: 13
Views: 10562

Re: Saving game data

Thanks a lot for help on this one. I've another problem though! I've only just tried to get this to work and I'm getting a linker error saying game.cpp:(.text+0x2): undefined reference to `fatInitDefault' Everything seems to be in order. Maybe I have to modify my makefile to link an extra library? A...
by digithree
Tue Mar 01, 2011 8:51 pm
Forum: devkitARM
Topic: Makefile can't find ds_rules any more
Replies: 2
Views: 2493

Re: Makefile can't find ds_rules any more

Ok, don't know what happened but I uninstalled devkit and reinstalled it, fixed it somehow.

Mysterious computer spirits....
by digithree
Tue Mar 01, 2011 7:09 pm
Forum: devkitARM
Topic: Makefile can't find ds_rules any more
Replies: 2
Views: 2493

Makefile can't find ds_rules any more

Hi, I've been tinkering away at a program I'm writing and I haven't done a build in over a week. I tried to build my project and for some reason I'm getting this error: > "make" Makefile:9: /c/devkitPro/devkitARM/ds_rules: No such file or directory make: *** No rule to make target `/c/devkitPro/devk...