Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Tool for indentation of 6502/6510 code
2010-03-04 09:48
Frantic

Registered: Mar 2003
Posts: 1641
Tool for indentation of 6502/6510 code

Hello!

I was thinking about smashing together a small perl script or something like that for automatic indentation of 6502/6510 asm code. I was thinking about having parameters such as tabsize to use (default 4 spaces), number of tabs to use (default 2 or 3 or so), and optional conversion of tab characters to spaces instead. That would be useful for me (and perhaps others) for pre-preparation of code to be put up at codebase64, since tabs are translated to something like 6 spaces or so, and people often mix tab chars and spaces, which produces quite messy results when posting the code on codebase.

But... Before doing this, I though I should just check if someone already wrote such a tool. No need to reinvent the...

//FTC
 
... 10 posts hidden. Click here to view all posts....
 
2010-03-06 09:47
Frantic

Registered: Mar 2003
Posts: 1641
Okay.. I wrote a relatively simple script for code indentation now. Among other things, it can be used with tools such as petcom (by Craig Bruce) to convert turbo assembler sources to indented ascii sources for use with cross assemblers or for display on codebase. I wrote some info on source conversion on the following Codebase page, and you'll find the indentation script there too if you want it:

http://codebase64.org/doku.php?id=source_conversion

Please take care when using the indentation script (do not overwrite your original source files) since I cannot guarantee that it doesn't fuck your sources up, slightly, or in worst case even a whole lot. :)

Please also give me bug reports...
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
zscs
JEZ
sLASH
syncroman
Fred/Channel 4
Meikel aka ZUX/Sparks
Martin Piper
Linus/MSL
Guests online: 133
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Morph  (9.5)
8 Dawnfall V1.1  (9.5)
9 Onscreen 5k  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Facet  (9.6)
4 Carrion  (9.6)
5 Pal  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.042 sec.