mirror of
https://github.com/nanochess/pretty6502.git
synced 2024-06-10 13:29:27 +00:00
Compare commits
38 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2299c06a0c | ||
|
277ff4f300 | ||
|
1aeeda4893 | ||
|
2a2554e7b2 | ||
|
31d378e5f2 | ||
|
f1fa133e06 | ||
|
e410f6f1cd | ||
|
f6e0da6ba0 | ||
|
4a50895de6 | ||
|
108beff9fb | ||
|
724dcd6d60 | ||
|
a1c8fa13fb | ||
|
f3b66b8a31 | ||
|
e1c0f0bacf | ||
|
2da9bf282d | ||
|
d90a597160 | ||
|
1df0c63956 | ||
|
cb82b61ee5 | ||
|
2554866b1b | ||
|
f145aa2d4f | ||
|
1377f017f1 | ||
|
8d640bdeaa | ||
|
503d264d04 | ||
|
e8315b7274 | ||
|
524b837063 | ||
|
0b545205e1 | ||
|
7de1c549a0 | ||
|
c09e116829 | ||
|
c8cbddc27b | ||
|
b6d6371695 | ||
|
f6ab2c4942 | ||
|
3715d95f77 | ||
|
54e5d6701a | ||
|
65b9d99b7e | ||
|
5e4600d5e2 | ||
|
0dc1d606ab | ||
|
d5b584cc8a | ||
|
7c8b89885f |
13
Makefile
Normal file
13
Makefile
Normal 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
51
README
|
@ -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.
|
||||
|
|
BIN
pretty6502
BIN
pretty6502
Binary file not shown.
1690
pretty6502.c
1690
pretty6502.c
File diff suppressed because it is too large
Load Diff
BIN
pretty6502.exe
BIN
pretty6502.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user