UnusualElectronics logo

"AsmTidy" - A utility to tidy Microchip PIC ASM code

(Project updated 14th May 2007)

asmtidy

Introduction

I created AsmTidy in an attempt to make it easier to tidy-up the general text layout of Assembly code written for Microchip PIC micro controllers.

It is currently compatible with MPASM code as used with Microchips's MPLAB assembler software.

I am currently testing it with code written for the PIC16F and PIC18F range of controllers.

It has been tested on Windows XP, Windows98 and Windows Vista (Home Premium edition)

Features

  • Arranges text neatly in columns, converts spaces to tabs (8 spaces per tab).
  • Easily changes the text case for Labels, Instructions, Registers and Comments
  • Able to add or remove colons to Labels
  • End of line comments can be automatically removed.
  • Blank lines can be removed
  • Option to add/remove a space in front of comments
  • Can convert PIC TASM type assembly files to the MPASM standard
  • Very easy to use

Example

An example of extremely untidy code

After using AsmTidy - The tidied code

Note. Looks best in a text editor that supports tabs (8 spaces per tab) eg.Notepad

Download

The current version of AsmTidy (v beta 0.02) (12/04/2007)
(Note. This is a beta software version - still being developed)

I do not release the source code for this project.

Notes

As a precaution, please back-up your source files before using this software.

For it to work, your program must already compile properly. It can't fix errors in your code!

Always test your "tidied" code by re-compiling it with MPLAB and fix any possible errors.

Things to do

Improve the user interface

Project Updates

v0.02 (12th April 2007) Fixed wrong case for some commands and added automatic conversion for PIC TASM format files to the MPASM standard.

v0.01 (4th March 2007) (first release)

Please check-back for updates.

Feedback

If you try this software and have any comments or find bugs etc, I welcome your feedback via the form on the contacts page.

Copyright

AsmTidy is currently released as "Freeware" for PERSONAL, NON-COMMERCIAL use only. If you wish to use AsmTidy commercially, please email me to request the purchase of a commercial licence. Usage of the software covered by this licence is allowed free of charge, but its COMMERCIAL DISTRIBUTION IS PROHIBITED.

Disclaimer

This project (including software) is provided on an "AS-IS" basis for NON-COMMERCIAL, personal use only and WITHOUT WARRANTY of any kind, either express or implied.

I shall NOT BE LIABLE in any way to you or to any other person, firm or corporation whatsoever for any loss, liability, damage (whether direct or consequential), personal injury or expense of any nature whatsoever arising from inaccuracies, errors in, or the use or inability to use the hardware and/or software here.

This project page was last updated Friday 26th of June 2009
Copyright © 2007 D. Thorpe (www.unusualelectronics.co.uk)

©Copyright 2005-2010 David Thorpe, UnusualElectronics.co.uk