https://github.com/nanochess/pretty6502
A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
https://github.com/nanochess/pretty6502
6502 8088 cp1610 tms9900 z80
Last synced: about 1 year ago
JSON representation
A pretty printer for 6502, Z80, CP1610, TMS9900, and 8088 assembler code
- Host: GitHub
- URL: https://github.com/nanochess/pretty6502
- Owner: nanochess
- License: bsd-2-clause
- Created: 2017-11-04T04:15:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T17:29:47.000Z (over 1 year ago)
- Last Synced: 2025-03-25T05:51:21.554Z (about 1 year ago)
- Topics: 6502, 8088, cp1610, tms9900, z80
- Language: C
- Homepage:
- Size: 141 KB
- Stars: 34
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Pretty6502 v0.8 by Oscar Toledo G. http://nanochess.org/
Usage:
pretty6502 [args] input.asm output.asm
It's recommended to not use same output file as input,
even if possible because there is a chance (0.0000001%)
that you can DAMAGE YOUR SOURCE if Pretty6502 has
undiscovered 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)
-p2 Processor Z80 + tniASM syntax
-p3 Processor CP1610 + as1600 syntax (Intellivision)
-p4 Processor TMS9900 + xas99 syntax (TI-99/4A)
-p5 Processor 8086 + nasm syntax
-p6 Processor 65c02 + ca65 syntax
-p7 Processor 6502 + gasm80 syntax
-p8 Processor Z80 + gasm80 syntax
-n4 Nesting spacing (can be any number
of spaces or multiple of tab size)
-m8 Start of mnemonic column (default)
-o16 Start of operand column (default)
-c32 Start of comment column (default)
-t0 Use spaces to align (default)
-t8 Use tabs to reach column (size 8)
Options -m, -o, -c, and -n must be multiples of this value.
-a0 Align comments to nearest column
-a1 Comments at line start are aligned
to mnemonic (default)
-l Put 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
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
>> ATTENTION <<
Do you would like to learn to program 6502 assembler and
creating Atari 2600 games? It is possible with my newest book
Programming Games for Atari 2600.
Now available from Lulu:
Paperback
https://www.lulu.com/shop/oscar-toledo-gutierrez/programming-games-for-atari-2600/paperback/product-pq9dg4.html
Hardcover
https://www.lulu.com/shop/oscar-toledo-gutierrez/programming-games-for-atari-2600/hardcover/product-n8z9r6.html
eBook
https://nanochess.org/store.html
These are some of the example programs documented profusely
in the book:
* Game of Ball.
* Wall Breaker.
* Invaders.
* The Lost Kingdom.
* Diamond Craze.