Mercurial > hg-old > index.cgi
comparison lwasm/instab.c @ 158:f0527dc3804d
Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
author | lost |
---|---|
date | Sat, 31 Jan 2009 05:30:06 +0000 |
parents | 427e268e876b |
children | b061350c17e4 |
comparison
equal
deleted
inserted
replaced
157:745721e13970 | 158:f0527dc3804d |
---|---|
77 extern OPFUNC(pseudo_starpragma); | 77 extern OPFUNC(pseudo_starpragma); |
78 extern OPFUNC(pseudo_extern); | 78 extern OPFUNC(pseudo_extern); |
79 extern OPFUNC(pseudo_export); | 79 extern OPFUNC(pseudo_export); |
80 extern OPFUNC(pseudo_ifdef); | 80 extern OPFUNC(pseudo_ifdef); |
81 extern OPFUNC(pseudo_ifndef); | 81 extern OPFUNC(pseudo_ifndef); |
82 extern OPFUNC(pseudo_noop); | |
82 | 83 |
83 instab_t instab[] = | 84 instab_t instab[] = |
84 { | 85 { |
85 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh }, | 86 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh }, |
86 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 }, | 87 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 }, |
380 { "endsect", { -1, -1, -1, -1}, pseudo_endsection }, | 381 { "endsect", { -1, -1, -1, -1}, pseudo_endsection }, |
381 { "endsection", { -1, -1, -1, -1}, pseudo_endsection }, | 382 { "endsection", { -1, -1, -1, -1}, pseudo_endsection }, |
382 | 383 |
383 { "pragma", { -1, -1, -1, -1}, pseudo_pragma }, | 384 { "pragma", { -1, -1, -1, -1}, pseudo_pragma }, |
384 { "*pragma", { -1, -1, -1, -1}, pseudo_starpragma }, | 385 { "*pragma", { -1, -1, -1, -1}, pseudo_starpragma }, |
385 | 386 |
387 /* for compatibility with gcc6809 output... */ | |
388 { ".area", { -1, -1, -1, -1}, pseudo_section }, | |
389 { ".globl", { -1, -1, -1, -1}, pseudo_export }, | |
390 { ".module", { -1, -1, -1, -1}, pseudo_noop }, | |
391 | |
392 { ".word", { -1, -1, -1, -1}, pseudo_fdb }, | |
393 { ".byte", { -1, -1, -1, -1}, pseudo_fcb }, | |
394 | |
395 { ".blkb", { -1, -1, -1, -1}, pseudo_rmb }, | |
396 | |
397 // needs to handle C escapes maybe? | |
398 // { ".ascii", { -1, -1, -1, -1}, pseudo_ascii }, | |
386 | 399 |
387 /* flag end of table */ | 400 /* flag end of table */ |
388 { NULL, { -0x1, -0x1, -0x1, -0x1 }, insn_inh } | 401 { NULL, { -0x1, -0x1, -0x1, -0x1 }, insn_inh } |
389 }; | 402 }; |