Assembly Code Development

From F256 Foenix
Revision as of 09:28, 2 November 2024 by 1BitFeverDreams (talk | contribs) (added a CLI example for 64tass for producing .pgz)
Jump to navigationJump to search

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.