![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on What flashcart for any homebrew that I make/run? within the NDS Developers Forum forums, part of the NDS Development and Homebrew category; I'm relatively new to homebrew in general. I've done some programming in the past and thought the DS would be ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
I'm relatively new to homebrew in general. I've done some programming in the past and thought the DS would be a great way to get back into it. I'm currently learning with PA_lib and devkitpro and using various "testing applications" such as Dualis, DeSmuME, but mot working is NO$GBA (the other two appear to have stylus input issues and also can't handle random numbers, but NO$GBA runs what I've written just fine). Since math is my area, I'm experimenting with a numbers type of game first before doing anything heavier.
My main question is when I go to load something on the DS itself. I'm looking at getting a DS (lite), probably the gold one bundled with the new Zelda game (probably one of the few commercial games I'll be playing), and one of the regular ones (just standard with some color of casing) for my wife. I've read about the G6 Real as what looks like it has all the features we could need (interested in the PDA feature and browser, notes, MS Word & TXT doc support, didn't it mention PDF support? and the ability to edit that INI file to make it auto-load a certain app on bootup--nice if you were giving it to someone and wanted an intro thing pre-loaded for easy launch). My concern is homebrew compatability. Would it be safe to assume it will run anything that I write (not having huge experience)? From a developement standpoint, what causes the compatability issues (what should I avoid trying to have the program do)? Also any tips anyone can give as for things to avoid doing (stuff the DS doesn't like/work well with) and any testing tips (best testing application, or is NO$GBA the best so far)? Thanks for any help. P.S. I have tried to get the following type of division calculation to display but the result is a "0.00" instead. float x = (y/z)*100 (make a percentage for example) |
|
|
|
|
|
|
#3 |
|
They are supposed to be recognized as floats. I've declared the variable as a float and then my text display (to show them on the screen) uses the float command, showing 2 decimal places. The returned/displayed number though is "0.00".
Thanks though and if this doesn't work I might try the (x*100)/y idea (DUH! Why didn't I think of that?) OK, I just tested and it is displaying the number but the decimal appears to be the issue now. For example, (1*100)/8 = 12.00 (should be 12.50) (1*100)/3 = 33.00 (should be 33.33) So aparently the formula was/is working like float = (1/8)*100 is not looking at float = 1/8 (or 0.125), times 100 (or 12.50) but instead behaves as float = 1/8 (or 0.00 due to the decimal problem), * 100 = 0 (which is why it wasn't working) Any idea why a float is not doing anything past the decimal place like it should? Also, any advice on the best cartridge to use for homebrew? Is the "G6 Real" the best? |
|
|
|
|
![]() |
| Tags |
| flashcart , homebrew , make or run |
| Thread Tools | |
|
|