as6809 from an ancient comp.sources post.  Tidied up to be ANSII C compliant.
(mostly using tools toansi and mkptypes)

There are newer and better 6809 assemblers, I just converted this one for fun
and partly to have a contemporary one to compare against.
