Skip to content
/ sf65 Public

Source formatter, which is designed currently for ca65 source files

License

Notifications You must be signed in to change notification settings

An-S/sf65

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SF65 by Stefan Andree, Mar 2018. Based on:

Pretty6502 v0.2 by Oscar Toledo G. http://nanochess.org/
For more information about the changes since forking, see release notes.

Usage:
    pretty6502 [args] input.asm output.asm

DON'T USE SAME OUTPUT FILE AS INPUT, though it's possible,
you can DAMAGE YOUR SOURCE if this program has bugs.

Arguments:
    -s0       Code in four columns (default)
              label: mnemonic operand comment
    -s1       Code in three columns
              label: mnemonic+operand comment
    -p0       Processor unknown
    -p1       Processor 6502 + DASM syntax (default)
    -m8       Start of mnemonic column (default)
    -o16      Start of operand column (default)
    -c32      Start of comment column (default)
    -t8       Use tabs of size 8 to reach column
    -t0       Use spaces to align (default)
    -a0       Align comments to nearest column
    -a1       Comments at line start are aligned
              to mnemonic (default)
    -n4       Nesting spacing (can be any number
              of spaces or multiple of tab size)
    -l        Puts labels in its own line
    -dl       Change directives to lowercase
    -du       Change directives to uppercase
    -ml       Change mnemonics to lowercase
    -mu       Change mnemonics to uppercase
    -e1       Pad sectioning directives with empty lines

Assumes all your labels are at start of line and there is space
before mnemonic.

Accepts any assembler file where ; means comment
[label] mnemonic [operand] ; comment

About

Source formatter, which is designed currently for ca65 source files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published