Re: What assembly syntax is good to support in an assembler?
Posted: Mon Nov 23, 2020 11:51 pm
BigDumbDinosaur wrote:
Any tools designed to assemble code for the 6502 should be using the MOS Technology standards, not those of an unrelated set of programming tools.
(I also recoil in horror at the thought of using GCC assembler syntax for 6502 assembly, but I recognize that that's an emotional respose; it's plausible to me that this is the right direction to go for LLVM.)
I do agree that you should consider carefully what you're doing before deviating from what limited standards MOS provides for assembler syntax, though. And I also agree that there are probably a fair number of assemblers out there where this careful consideration was not done and they suffered for it. But then again, there's a lot of badly designed software out there, some with much larger and worse effects on the world; this doesn't seem to be any kind of special case.
Quote:
Note that the MOS Technology language standard explicitly states that pseudo-ops and macros are not part of the standard.
_________
* If you're really stuck, consider in detail what it would have taken to write the first 6502 version of Microsoft BASIC using LDX #TEMPST instad of LDXI TEMPST. Same goes for the original 8080 BASIC, where you can think about how much it would have been delayed (and how much more expensive time on the PDP-10 would have been needed) by a prioritizing "standard syntax" over anything else.