Assembly Code Development: Difference between revisions

From F256 Foenix
Jump to navigationJump to search
(added a CLI example for 64tass for producing .pgz)
(typo)
 
Line 5: Line 5:
an example of a usage of the CLI parameters to compile a .pgz executable (a favored choice) would be inside a windows .bat file:
an example of a usage of the CLI parameters to compile a .pgz executable (a favored choice) would be inside a windows .bat file:


<nowiki>64tass -c --output-exec=start --c256-pgz "%1.asm" api.asm --mw65c02 -Wno-portable -o "%1.pgz</nowiki>
64tass -c --output-exec=start --c256-pgz "%1.asm" api.asm --mw65c02 -Wno-portable -o "%1.pgz"
 
(where %1 is replaced by your file's prefix, api.asm can be removed or replaced by any number of definition files)
(where %1 is replaced by your file's prefix, api.asm can be removed or replaced by any number of definition files)



Latest revision as of 09:29, 2 November 2024

Numerous assemblers are available for the 6502 family of CPUs. Here are a few:

64tass
64tass is the preferred assembler and includes the option to generate .pgz binaries.

an example of a usage of the CLI parameters to compile a .pgz executable (a favored choice) would be inside a windows .bat file:

64tass -c --output-exec=start --c256-pgz "%1.asm" api.asm --mw65c02 -Wno-portable -o "%1.pgz"

(where %1 is replaced by your file's prefix, api.asm can be removed or replaced by any number of definition files)

as6502
as6502 is an older, more traditional Relocatable Macro Assembler. It's part of an entire suite of 8-bit assemblers which all use the same linker.
merlin32
Merlin32 is a modern version of the Merlin 8/16 Macro Assemblers. Familiar to many Apple II programmers of the day, it also completely supports 65816, and runs on Mac, Windows, and Linux.