Compare commits

...

38 Commits
0.2 ... master

Author SHA1 Message Date
nanochess
2299c06a0c Added link to Atari 2600 book 2023-06-07 21:13:55 -06:00
Oscar Toledo
277ff4f300
Merge pull request #5 from LLeny/ca65
65c02, ca65
2023-05-26 09:39:33 -06:00
LLeny
1aeeda4893 Fix README 2023-05-26 21:41:40 +09:00
LLeny
2a2554e7b2 65c02, ca65 2023-05-26 14:11:36 +09:00
nanochess
31d378e5f2 Added -p5 option for 8086+nasm 2021-04-12 21:07:24 -05:00
nanochess
f1fa133e06 Solved bug in comment location for TMS9900 mode 2018-04-18 12:36:47 -05:00
nanochess
e410f6f1cd Added support for TMS9900+xas99 (TI-99/4A) 2018-04-18 12:04:51 -05:00
nanochess
f6e0da6ba0 Clarified warning. 2018-04-17 20:16:13 -05:00
nanochess
4a50895de6 Updated README 2018-04-17 20:08:06 -05:00
nanochess
108beff9fb Added support for CP1610 processor and as1600 (Intellivision) 2018-04-17 20:05:50 -05:00
nanochess
724dcd6d60 Updated version number 2018-04-16 14:01:13 -05:00
nanochess
a1c8fa13fb Added support for Z80 processor and tniASM. Solved bug in apostrophe processing 2018-04-16 13:59:08 -05:00
nanochess
f3b66b8a31 Allows to change case of directives and mnemonics 2017-11-06 13:55:00 -06:00
nanochess
e1c0f0bacf Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:41:30 -06:00
nanochess
2da9bf282d Updated version in README 2017-11-06 13:41:08 -06:00
nanochess
d90a597160 Updated version in README 2017-11-06 13:41:08 -06:00
nanochess
1df0c63956 Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:40:26 -06:00
nanochess
cb82b61ee5 Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:40:26 -06:00
nanochess
2554866b1b minor changes 2017-11-06 13:38:55 -06:00
nanochess
f145aa2d4f Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:36:33 -06:00
nanochess
1377f017f1 Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:36:33 -06:00
nanochess
8d640bdeaa Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:36:33 -06:00
nanochess
503d264d04 Removed executables 2017-11-06 13:35:29 -06:00
nanochess
e8315b7274 Removed executables 2017-11-06 13:35:29 -06:00
nanochess
524b837063 Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:35:08 -06:00
nanochess
0b545205e1 Merge branch 'master' of github.com:nanochess/pretty6502 2017-11-06 13:35:08 -06:00
nanochess
7de1c549a0 Indents nested preprocessor. Allows label in its own line. Tries to preserve horizontal position of comments. 2017-11-06 13:28:48 -06:00
nanochess
c09e116829 Indents nested preprocessor. Allows label in its own line. Tries to preserve horizontal position of comments. 2017-11-06 13:28:48 -06:00
nanochess
c8cbddc27b Indents nested preprocessor. Allows label in its own line. Tries to preserve horizontal position of comments. 2017-11-06 13:28:48 -06:00
nanochess
b6d6371695 Indents nested preprocessor. Allows label in its own line. Tries to preserve horizontal position of comments. 2017-11-06 13:28:48 -06:00
nanochess
f6ab2c4942 Reads the input file in one pass. Nicer repetition of spaces in output (robertlipe). 2017-11-06 10:27:10 -06:00
nanochess
3715d95f77 Reads the input file in one pass. Nicer repetition of spaces in output (robertlipe). 2017-11-06 10:27:10 -06:00
nanochess
54e5d6701a Reads the input file in one pass. Nicer repetition of spaces in output (robertlipe). 2017-11-06 10:27:10 -06:00
nanochess
65b9d99b7e Reads the input file in one pass. Nicer repetition of spaces in output (robertlipe). 2017-11-06 10:27:10 -06:00
nanochess
5e4600d5e2 clarify executable 2017-11-03 22:17:59 -06:00
nanochess
0dc1d606ab clarify executable 2017-11-03 22:17:59 -06:00
nanochess
d5b584cc8a First commit 2017-11-03 22:14:39 -06:00
nanochess
7c8b89885f First commit 2017-11-03 22:14:39 -06:00
5 changed files with 1265 additions and 489 deletions

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
# Ultra simple makefile for pretty6502
# by Oscar Toledo G.
# https://github.com/nanochess/pretty6502
#
build:
@cc pretty6502.c -o pretty6502
clean:
@rm pretty6502
love:
@echo "...not war"

51
README
View File

@ -1,34 +1,79 @@
Pretty6502 v0.1 by Oscar Toledo G. http://nanochess.org/
Pretty6502 v0.7 by Oscar Toledo G. http://nanochess.org/
Executables provided for Mac OS X and Windows.
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.
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
-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 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.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.