🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.nsc.32k
Article #160

The great assembler syntax debate.

#160
From: ian
Date: Wed, 09 May 1990 16:09
26 lines
1612 bytes
I invited discussion sometime ago on assembler syntax. There is no
really clear concensus except that most people seem to agree with me
that the original gas syntax sux.

The only question is whether to adopt the NS SysV syntax. A couple of
people suggested this but there was no concensus and so the simplest
thing is to leave it like it is.  Also the current syntax is
compatable with Bruce Culbertson's assembler.

The gas uses '|' as a "line comment" character. This is silly as it
means you can't have expressions with logical "or" in them. Since
there is no longer any need for a '#' character to mean "immediate
mode", '#' can be used as the comment character everywhere. These
changes are trivial and I haven't updated the gas patches as I am
waiting until I have perfected(*) a shell/sed script to convert Bruce's
assembler syntax to gas assembler syntax.

Whilst, gas has compatable opcodes and addressing mode syntax to
Bruce's assembler, thhe comment character is different and the pseudo
ops need some work.

Ian Dall

* Possibly not doable with sed when you take things like the
  possibility of comment characters within strings. It seems to be
  pretty good in practice though.
Technical Details
Message-ID: <9005091642.29687@munnari.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!daver!bungi.com!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!daver!bungi.com!news
From: ian@sibyl.eleceng.ua.oz.au
Newsgroups: comp.sys.nsc.32k
Subject: The great assembler syntax debate.
Message-ID: <9005091642.29687@munnari.oz.au>
Date: 9 May 90 16:09:45 GMT
Sender: news@daver.bungi.com
Lines: 26
Approved: news@daver.bungi.com