git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1833
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
- * Foobar is distributed in the hope that it will be useful,
+ * Paul's XA51 Assembler is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
- * Foobar is distributed in the hope that it will be useful,
+ * Paul's XA51 Assembler is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
db_directive: DB {db_count = 0;}
db_directive: DB {db_count = 0;}
+linesymbol: normal_or_bit_symbol {
strcpy(symbol_name, lex_sym_name);
if (!strchr(lex_sym_name, ':')) {
/* non-local label, remember base name */
strcpy(symbol_name, lex_sym_name);
if (!strchr(lex_sym_name, ':')) {
/* non-local label, remember base name */
if (is_target(symbol_name)) pad_with_nop();
}
if (is_target(symbol_name)) pad_with_nop();
}
+normal_or_bit_symbol: WORD {$$ = $1;}
+ | BIT {$$ = $1;}
+
bytes: byte_element
| bytes ',' byte_element
bytes: byte_element
| bytes ',' byte_element
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
*
- * Foobar is distributed in the hope that it will be useful,
+ * Paul's XA51 Assembler is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
/* adapted from the osu8asm project, 1995 */
/* http://www.pjrc.com/tech/osu8/index.html */
/* adapted from the osu8asm project, 1995 */
/* http://www.pjrc.com/tech/osu8/index.html */
-#define printf(x...) fprintf(stderr,x)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#define printf(x...) fprintf(stderr,x)
+
#include "xa_main.h"
extern void yyrestart(FILE *new_file);
#include "xa_main.h"
extern void yyrestart(FILE *new_file);