On Sat, 16 Aug 2014, A. P. Garcia wrote:
Is there an assembler for which a
majority of available code was written for? Probably the most famous
bit of 6502 asm out there is the Apple II Prince of Persia
Do you want to assemble Prince of Persia? If you're using
an Apple II (or an emulator) you could use the assembler
Merlin -- see my earlier message about PoP using Merlin.
Various different versions of Merlin can be downloaded from
http://apple2online.com/index.php?p=1_27_Software-M-P
There were many 6502 assemblers that ran on the Apple II, but
Merlin and Lisa were the most popular.
Of course. I'm wondering about other conventions, e.g. how to delineate
comments, the types of pseudo ops that were necessary, macros, that sort of
thing. I've only really done x86 assembly to any meaningful extent, where
for example there's "intel syntax" which is the order of operands that you
see in the data sheets, and "at&t syntax", which reverses that order. At
first some of these things were a bit different among assemblers, but
eventually most of them tried to be masm compatible...
Do you want to learn 6502 assembler in general? If so, you
can focus on the standard op codes, but the various assemblers
use a wide variety of mutually-incompatible syntaxes for macros
and pseudo-ops. You'd probably be best off to get the manual
for Merlin or some other popular 6502 assembler. The manual
for Merlin 8/16 can be downloaded from
http://www.apple-iigs.info/doc/fichiers/merlin816.pdf
Randy Hyde's book "How to Program the 6502 Using Assembly
Language" can be downloaded from
(two lines, glue them together)
ftp://ftp.apple.asimov.net/pub/apple_II/documentation/
programming/6502assembly/Using%206502%20Assembly%20Language.pdf
Best wishes,
--Ernest