Search found 10 matches

by Legolas
Thu Jul 17, 2014 1:50 pm
Forum: DS/DSi Development
Topic: Patch for Pascal headers output
Replies: 0
Views: 14767

Patch for Pascal headers output

Hello there, I have just posted a new patch in the sf's ticketing system. It adds to GRIT a new command line switch that enables pascal output for the header file. Please, review it and let me know if is suitable to be merged in trunk or if it needs some adjustments
by Legolas
Tue Jun 26, 2012 5:50 pm
Forum: DS/DSi Development
Topic: floattov16
Replies: 3
Views: 6453

Re: floattov16

Ok, that makes sense, thank you :)
But I can't understand why same values are converted in different manners:

Code: Select all

float value = 10.0f; -> floattov16(value) returns 0xFFFFA000
#define value 10.0f -> floattov16(value) returns 0x00007FFF
by Legolas
Mon Jun 25, 2012 7:08 pm
Forum: DS/DSi Development
Topic: floattov16
Replies: 3
Views: 6453

floattov16

Consider this code: #include <nds.h> #include <stdio.h> volatile float incr = 0.0f; volatile float decr = 0.0f; volatile float value = 8.0f; //--------------------------------------------------------------------------------- void Vblank ...
by Legolas
Fri Nov 12, 2010 12:52 pm
Forum: DS/DSi Development
Topic: Configuring an emulator for the "run" command on PN.
Replies: 16
Views: 16119

Re: Configuring an emulator for the "run" command on PN.

Code: Select all

run: $(BUILD)
	desmume $(OUTPUT).nds
^^^
TAB, not spaces :-)!!!!
by Legolas
Tue Jun 15, 2010 9:31 am
Forum: DS/DSi Development
Topic: Prepackaged?
Replies: 1
Views: 3045

Re: Prepackaged?

fpc4nds is a third party compiler, so isn't directly supported here. By the way, I'm pretty sure that your problem is in the libnds binding for freepascal, that isn't updated yet to the latest version. In the next days a new fpc4nds version should be released, so just wait :) If you can't wait, then ...
by Legolas
Fri Jan 22, 2010 10:36 am
Forum: DS/DSi Development
Topic: Screen Size vs VRAM Bank Size
Replies: 2
Views: 3168

Re: Screen Size vs VRAM Bank Size

SCREEN_WIDTH * SCREEN_HEIGHT = 256 * 192 = 49152 pixels

Each pixel is 16 bit = 2 Byte wide, so:

49152 * 2 = 98304 Bytes = 98304 / 1024 = 96 KBytes

Each main bank is 128 KB wide, the screen requires 96 KB, so it fits just fine, if I understood your question
by Legolas
Fri Jun 12, 2009 7:45 pm
Forum: DS/DSi Development
Topic: nitrofs with combined template
Replies: 7
Views: 7650

Re: nitrofs with combined template

Just use tabs instead of blank spaces in line 39
by Legolas
Sun Jan 04, 2009 9:30 pm
Forum: DS/DSi Development
Topic: ideas emulator issue
Replies: 2
Views: 4890

Re: ideas emulator issue

Because iDeaS is bugged, I guess. The code works pretty fine on no$gba (2) and on real hardware (1 and 2). Try asking on ideas forum for a bug fix ;)
by Legolas
Tue Nov 18, 2008 8:32 pm
Forum: DS/DSi Development
Topic: Adobe to port Flash Player to ARM
Replies: 2
Views: 5171

Re: Adobe to port Flash Player to ARM

You are mixing different things: ARMv7 is the architecture version, ARM7 is the family version.
The ARM7 cpu is based on ARMv4t architecture and the ARM9 is based on ARMv5TE architecture. You can get more infos on wikipedia
by Legolas
Fri May 09, 2008 1:42 am
Forum: devkitARM
Topic: Binutils changes
Replies: 1
Views: 4736

Binutils changes

Hello there! Usually I use the binutils shipped with the devkitARM with Free Pascal, in order to compile pascal code for gba and nds. I have noticed a different behavior in the arm-eabi-ld 2.18.50 compared to the 2.17 shipped until dkARM 21. Seems that ld does not generate interworking stub calls ...