Documentation tool for the ZSNES source

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
quad
New Member
Posts: 6
Joined: Sun Mar 06, 2005 6:34 pm

Documentation tool for the ZSNES source

Post by quad »

Hello,

In an attempt to provide a way to document the source code of ZSNES, I have written a small tool in Perl that generates documentation files similar to javadoc based on special comments in the .asm and .inc files.

The following screenshot illustrates an execution over the src directory of ZSNES:

http://quadhome.calizone.net:8000/asmdoc-zsnes.png

It currently recognizes a quite strict comment and labeling format, but I think it could help to provide a wider accessibility to the source for new ZSNES hackers. Also, it has a number of issues regarding its flexibility (eg: current HTML code is directly included in the Perl source, while it should be based on external, easy-to-modify templates, etc.).

Do you think that such a tool could be useful? Any comment would be greatly appreciated, including if something has already been done regarding this. :)
~
~
:wq!
snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Post by snkcube »

Your link doesn't work.
Try out CCleaner and other free software at Piriform
Image
quad
New Member
Posts: 6
Joined: Sun Mar 06, 2005 6:34 pm

Post by quad »

Doesn't it? I can see at least one request from the Internet in the log files of my web server and it seems to have worked fine for that person.

What error does it give you?

But thanks for reporting; I'll see if anyone else reports the same... Or perhaps I could post the image somewhere (??).
~
~
:wq!
snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Post by snkcube »

Now it works. :P
Try out CCleaner and other free software at Piriform
Image
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

Sure, I think your tool is useful. I like the looks of it. However.. it can only do so much since ZSNES is pretty limited when it comes to comments. The authors of uncommented unorganized code should do the community a favor and go back and organize and comment it.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
Post Reply