xa51, work in progress
[fw/sdcc] / as / xa51 / xa_asm.y
index 7872da4ef8e7ffab112bc1cfab12a6a7c3ec89d1..4b87ea3f109abf8f7bb1419e8cc2a2a37f540fa1 100644 (file)
@@ -84,7 +84,7 @@ line:          linesymbol ':' linenosym {
                }
 
 linenosym:     directive EOL {
-                       if (p3) out(op, $1);
+                       if (p3) out(op, $1);
                        $$ = $1;
                }
              | instruction EOL {
@@ -138,7 +138,7 @@ directive:     '.' ORG expr {
                         $$ = 0;
                 }
             | bitsymbol BITDEF expr {
-                       if (p1) {
+                       if (p1) {
                                 build_sym_list(symbol_name);
                                 mk_bit(symbol_name);
                         }
@@ -184,6 +184,10 @@ directive:     '.' ORG expr {
                        /* ignore global symbol declaration */
                        $$ = 0;
                }
+            | '.' GLOBL bit {
+                       /* ignore bit symbol declaration */
+                       $$ = 0;
+               }
             | '.' DS expr {
                        /* todo: if CSEG, emit some filler bytes */
                        $$ = $3;