CPCWiki forum

General Category => Programming => Topic started by: ssr86 on 21:49, 07 September 15

Title: Looking for an asm code formatter...
Post by: ssr86 on 21:49, 07 September 15
Hi, does anyone know a tool/editor that has an option of auto formatting the source code?
I've coded in Context+pasmo and I have neglected formatting of my source. It's somewhat messy and I'd like to reformat it...but without doing it by hand.

Looking for something like shift+alt+f in netbeans;P.
I've read that notepad++ could do that if one wrote a plugin for it...

Can anyone help? :-*
Title: Re: Looking for an asm code formatter...
Post by: AMSDOS on 09:59, 09 September 15
ASM Formatter? (http://sourceforge.net/projects/asmformatter/?source=navbar)
Title: Re: Looking for an asm code formatter...
Post by: ssr86 on 11:45, 09 September 15
Not good - it's for MC68000 and Intel8051.
I guess it will be quicker to write a simple formatter by oneself...
Title: Re: Looking for an asm code formatter...
Post by: AMSDOS on 13:57, 09 September 15
This scripted site (http://clrhome.org/bbify/) will do Z80 assembly.
Title: Re: Looking for an asm code formatter...
Post by: ssr86 on 14:13, 09 September 15
No, it only colors the syntax etc. It doesn't fix the indents (at least when I've tried)
Title: Re: Looking for an asm code formatter...
Post by: robcfg on 16:13, 09 September 15
Sublime Text, maybe?
Title: Re: Looking for an asm code formatter...
Post by: ssr86 on 18:26, 09 September 15
Thank you, after installing st2 + sublime-text-z80asm/z80asm at master · psbhlw/sublime-text-z80asm · GitHub (https://github.com/psbhlw/sublime-text-z80asm/tree/master/z80asm) I have the possibilty. However the reindent works somewhat crippled.  My problem is that it doesn't differentiate labels from code... and it formats everything to the same indent level...

Powered by SMFPacks Menu Editor Mod