2018-04-18 01:08:06 +00:00
|
|
|
Pretty6502 v0.4 by Oscar Toledo G. http://nanochess.org/
|
2017-11-04 04:14:39 +00:00
|
|
|
|
2017-11-04 04:17:59 +00:00
|
|
|
Executables provided for Mac OS X and Windows.
|
|
|
|
|
2017-11-04 04:14:39 +00:00
|
|
|
Usage:
|
|
|
|
pretty6502 [args] input.asm output.asm
|
|
|
|
|
|
|
|
DON'T USE SAME OUTPUT FILE AS INPUT, though it's possible,
|
2018-04-16 18:59:08 +00:00
|
|
|
you can DAMAGE YOUR SOURCE if Pretty6502 has undiscovered
|
|
|
|
bugs.
|
2017-11-04 04:14:39 +00:00
|
|
|
|
|
|
|
Arguments:
|
|
|
|
-s0 Code in four columns (default)
|
|
|
|
label: mnemonic operand comment
|
|
|
|
-s1 Code in three columns
|
|
|
|
label: mnemonic+operand comment
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-06 19:28:48 +00:00
|
|
|
-p0 Processor unknown.
|
|
|
|
-p1 Processor 6502 + DASM syntax (default)
|
2018-04-16 18:59:08 +00:00
|
|
|
-p2 Processor Z80 + tniASM syntax
|
2018-04-18 01:08:06 +00:00
|
|
|
-p3 Processor CP1610 + as1600 syntax (Intellivision)
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-04 04:14:39 +00:00
|
|
|
-m8 Start of mnemonic column (default)
|
|
|
|
-o16 Start of operand column (default)
|
|
|
|
-c32 Start of comment column (default)
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-04 04:14:39 +00:00
|
|
|
-t8 Use tabs of size 8 to reach column
|
|
|
|
-t0 Use spaces to align (default)
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-04 04:14:39 +00:00
|
|
|
-a0 Align comments to nearest column
|
|
|
|
-a1 Comments at line start are aligned
|
|
|
|
to mnemonic (default)
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-06 19:28:48 +00:00
|
|
|
-n4 Nesting spacing (can be any number
|
|
|
|
of spaces or multiple of tab size)
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-06 19:28:48 +00:00
|
|
|
-l Put labels in its own line
|
2018-04-16 18:59:08 +00:00
|
|
|
|
2017-11-06 19:55:00 +00:00
|
|
|
-dl Change directives to lowercase
|
|
|
|
-du Change directives to uppercase
|
|
|
|
-ml Change mnemonics to lowercase
|
|
|
|
-mu Change mnemonics to uppercase
|
2017-11-04 04:14:39 +00:00
|
|
|
|
|
|
|
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
|