flat assembler
Message board for the users of flat assembler.

Index > Windows > asm to html converter

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
I wrote simple utility that converts your assembly source to HTML format. It can be useful if you would like to put your codes on your website.
It does simple syntax-highlighting (similar to the one implemented in this forum). You can customize the generated file by editing strings in the beggining of asmparse.asm file, to make the output look just as you wish Smile
usage:
Code:
asm2html source.asm output.htm[l]    


enjoy!

[edit]just added some readme file Wink[/edit]

[edit]attachment removed. Now asm2html can be found at my website.[/edit]


Last edited by decard on 18 May 2004, 20:12; edited 3 times in total
Post 02 Mar 2004, 15:23
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Hi decard.

Very nice and usefull. Good work! Smile
Also, AFAIK, the first published independent project written with Fresh. Wink I should include 'Cdecl.inc' in next uploaded version.

For now, If someone want to recompile, simply copy cdecl.inc from FASMW "include\macro" directory to Fresh "include\macro" directory and also add to win32a.inc file the line:
Code:
include '%fasminc%/macro/cdecl.inc'
    


Regards.
Post 02 Mar 2004, 16:10
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
thanks Wink
actually I forgot that cdecl.inc is only in %finc% directory that resides on my HDD Smile Thanks for making it clear.

regards
Post 02 Mar 2004, 16:33
View user's profile Send private message Visit poster's website Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
decard,

Nice work. I liked your tool.

Decard, I see that you are using C run-time functions in your code. You might consider using __getmainargs function to get the commandline parameters. Have a look at this thread:

http://board.win32asmcommunity.net/showthread.php?s=&threadid=9510&highlight=getmainargs

_________________
Code it... That's all...
Post 02 Mar 2004, 19:22
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Yeah, thanks for pointing me about this function, I didn't know about it Wink But my function works well, so I will leave it by now, and I will change the function when doing some modifications to my program.

regards
Post 03 Mar 2004, 21:00
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
I added simple GUI version to the package:
Quote:

asm2html_w: GUI version of asm2html
asm2html_w is a very handy utility when you have to convert many small (up to 16kb each) code snippets. When you run asm2html_w, you will see a window with edit box and two buttons. To convert your code, put it in the edit box, and press "Copy as HTML" button. Now the clipboard will contain generated HTML. To quit, just press the "Exit" button.


available at my website

regards,
Mateusz
Post 18 Apr 2004, 15:43
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.