gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

OffTopic > PNotepad help

#140115 - jake2431 - Thu Sep 13, 2007 6:07 pm

Hello. It's been a while since I have posted here. I am currently taking a asm class and they are using TextPad as their IDE, but I want to use PNotepad. My question is what do I search for to learn how to setup the IDE where I can link, assemble, and bring up the debugger from PNotePad. I don't have experience figuring that stuff out, other than following step by step instruction. I don't actually know what I am doing. My teacher said to look at the help file, but PNotepad's help file is incomplete.

#140157 - meshounah - Thu Sep 13, 2007 11:35 pm

if i remember Pnotepad uses makefiles
_________________
My Blog

#140411 - wintermute - Sun Sep 16, 2007 5:37 am

meshounah wrote:
if i remember Pnotepad uses makefiles


No it doesn't. The devkitPro installer sets it up to run make which uses makefiles. Pnotepad can run anything that can be executed from the command line and capture it's output.

Jake, can you give some more specific information on what you need to do?

Personally I prefer using make to drive multi stage build processes but there are other ways to achieve the same functionality if the tools are relatively simple.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#140588 - jake2431 - Mon Sep 17, 2007 11:08 pm

Sorry it has taken me so long to reply. What I basically have to do for the class is run the .bat file that the teacher made and then the debugger. The way this is done in TextPad is that I make a new tool called AL.BAT with the parameters 'AL.BAT $BaseName' and another called Windbg.exe with the parameters 'Windbg.exe $BaseName.exe' and that's it. I just need the equivalent for PNotepad. I'm sure this is something really simple; I just don't know what I am doing.

Thanks for the help.

#141077 - jake2431 - Fri Sep 21, 2007 9:57 pm

Okay, maybe this will help. This is what I have entered now. What do I need to do?

[Images not permitted - Click here to view it]

#141281 - jake2431 - Sun Sep 23, 2007 8:07 pm

Okay, I've gotten in to work if I am in the software folder, but I want to know how to be able to do it from any folder. I have tried changing the folder box in the add tools window to %d, but that didn't work. I have also tried adding a path to AL.BAT, but that didn't work(perhaps I did it wrong). Here is what I have now:

[Images not permitted - Click here to view it]

Also, I don't know much about .bat files I guess, so I'm not sure if I need to change something there. I have been reading over it, but don't see anything I should change. Here is the batch file:

ml/c /coff /Fl /Zi %1.asm
link /debug /subsystem:console /entry:start /out:%1.exe %1.obj c:\80x86\Software\io.obj c:\80x86\Software\kernel32.lib