RetroBytes Portal

Programming => Gameboy Advance & Nintendo DS Coding => Topic started by: headkaze on December 23, 2008, 12:33:42 am

Title: Setting up Programmers Notepad
Post by: headkaze on December 23, 2008, 12:33:42 am
Here's a quick guide to using Programmers Notepad as an IDE for compiling NDS binaries. The first thing I noticed is that the templates were all messed up in my examples I posted so I have fixed them all and reposted them.

On the left side of the screen you have a Projects window that should have the arm7 and arm9 folders and in them "header" and "source" folders containing the source code.

For some reason the posted examples were stuffed and I had to delete their folders and add new ones. Then inside those folders you right click and add the source files.

Now you should have all your source files in folders on the left of the screen. Double clicking a file should open it up for editing. You can double click the titlebar to make it fill the space available.

First of all the syntax hilighting is not really working for arm so I added some of the opcodes myself. Download the attached file called asm_scheme.zip and extract the asm.scheme file to C:\devkitPro\Programmers Notepad\schemes overwriting the old one. Now you will at least see the arm opcodes hilighted. Unfortunately it doesn't recognize '@' commented lines and I could not for the life of me change that.

Now we should have syntax hilighting working okay. Next we will look at the 3 most important features of this IDE.

Under the Tools menu you will see "make", "clean" and "run".

* "make" - will simply call make on the makefile and build the project.

* "clean" - will clean the project and compile fresh. This is important if major changes were made and the project needs a complete recompile

* "run" - This should launch the emulator and run your compiled .nds file. By default this is not set up but I have reuploaded the projects and changed this.

You need to open the MyProject.pnproj file in notepad and change the <Project name="template"> to be <Project name="MyProject"> replacing "MyProject" with the name of your project and it must match the name of the compiled .nds (Eg. MyProject.nds).

Now you will need to view the attached images which will guide you through setting up iDeaS to run when you select Tools->run from the menu.
Title: Re: Setting up Programmers Notepad
Post by: flash on December 23, 2008, 03:02:10 pm
A great bit of work HK and certainly makes working with the ide a lot better. Five stars and please sit at the front of the class :)
Title: Re: Setting up Programmers Notepad
Post by: a128 on January 08, 2010, 03:24:05 pm
I always find it easier to develop under Linux or Mac...using shell and gvim or under Mac I like Xcode IDE
Title: Re: Setting up Programmers Notepad
Post by: flash on January 08, 2010, 03:52:36 pm
I have not really played with Xcode yet, though from the time I have spent 'fiddling' with it, it is certainly very capable.

Programmers Notepad is still very good and tidy. I do find it quite good for DS development and have certainly 'cut-my-teeth' using it.

a128, sorry for my ignorance, but what stuff have you developed? I would be very interested.
Title: Re: Setting up Programmers Notepad
Post by: a128 on January 17, 2010, 08:06:30 am
a128, sorry for my ignorance, but what stuff have you developed? I would be very interested.

I developed a dreamcast game DCastle...several libs for the DC
and a sequencer for the NDS plus a unreleased racing game for the NDS
videos are here
http://www.youtube.com/user/MrA128 (http://www.youtube.com/user/MrA128)

Title: Re: Setting up Programmers Notepad
Post by: headkaze on January 17, 2010, 09:05:33 am
I developed a dreamcast game DCastle...several libs for the DC
and a sequencer for the NDS plus a unreleased racing game for the NDS
videos are here
http://www.youtube.com/user/MrA128 (http://www.youtube.com/user/MrA128)

I love your racing game, looks very professional!
Title: Re: Setting up Programmers Notepad
Post by: Lobo on January 17, 2010, 05:17:02 pm
That racing game sure looks fun, is there a download anywhere yet?
 :o
Title: Re: Setting up Programmers Notepad
Post by: a128 on January 17, 2010, 06:46:26 pm
That racing game sure looks fun, is there a download anywhere yet?
 :o

Unreleased means no downloads yet :-) Sorry....
Title: Re: Setting up Programmers Notepad
Post by: flash on January 17, 2010, 07:36:16 pm
Sniff!  :'(
Title: Re: Setting up Programmers Notepad
Post by: Lobo on January 17, 2010, 07:45:10 pm
Ahh, missed that part.  :)
Well, good luck releasing it eventually.  ;)
Title: Re: Setting up Programmers Notepad
Post by: spacefractal on January 17, 2010, 10:32:42 pm
I gonna think you should have started a new thread about your cool project in the other games projects? Yes, the racing one look cool.