as: Allow #constant in Z80.
authorAlan Cox <alan@linux.intel.com>
Wed, 15 Nov 2017 21:12:04 +0000 (21:12 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 15 Nov 2017 21:12:04 +0000 (21:12 +0000)
Yes it's an abomination but some assemblers in common use want this.

Applications/MWC/cmd/asz80/as1.c

index de5b16e..74b444f 100644 (file)
@@ -63,7 +63,7 @@ void getaddr(ADDR *ap)
                        ap->a_flags |= A_LOW;
                else if (c == '>')
                        ap->a_flags |= A_HIGH;
-               else
+               else if (c != '#')
                        unget(c);
                expr1(ap, LOPRI, 0);
                return;