Jump to content
IGNORED

6502 ASM pretty formatter


EricBall

Recommended Posts

Does anyone know of a tool (DOS, Windows, or C++ source) which will reformat 6502 ASM for consistency?

 

For Leprechaun, I've got chunks of code which I've done at different times & I haven't been consistent with my use of upper & lower case. I'd like to be able to run my source through a filter which will reformat everything.

 

I'm thinking stuff like opcodes as lower case, equate labels as upper case, address labels as lower etc.

Link to comment
Share on other sites

  • 3 weeks later...
Did you find something? I saw that Beautifer supports some asm types.

964063[/snapback]

Nope, didn't find anything, and haven't had the time to create something myself. I also found that I had some semi-contradictory desires on how to handle different labels. (Important, because labels are case sensitive in DASM.)

Link to comment
Share on other sites

  • 2 months later...
Did you find something? I saw that Beautifer supports some asm types.

964063[/snapback]

Nope, didn't find anything, and haven't had the time to create something myself. I also found that I had some semi-contradictory desires on how to handle different labels. (Important, because labels are case sensitive in DASM.)

964844[/snapback]

 

Did you decide on a method or find an utility?

 

--

Be kind to wizards or you shall be replaced with a very small Perl script.

Link to comment
Share on other sites

  • 1 month later...

Here is a little tool that let you format your source.

Not very sophisticated but it's a first try.

I tested it with some DASM source code and it worked quite well but I am don't use macros or special pseudo op's.

You can add instructions or pseudo op's in the corresponding txt files.

Just give it a try and let me know what you think.

One more note, you need the .NET framework 1.1 to let it run.

6502Formatter.zip

Link to comment
Share on other sites

  • 11 years later...

I've wrote a pretty printer for 6502 assembler code, Aardvark was a mess of tabs and spaces, so I needed something to make it uniform.

 

I hope it's also useful for someone else.

 

REMEMBER: DON'T APPLY IT OVER YOUR ORIGINAL SOURCE CODE, MAKE A BACKUP FIRST!!! (it could have hidden bugs)

 

https://github.com/nanochess/pretty6502

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...