comparison src/instab.c @ 104:2ba8f9ef1417

Added ifdef/ifndef conditionals
author lost
date Sun, 25 Jan 2009 04:02:50 +0000
parents 6097cb1486f8
children
comparison
equal deleted inserted replaced
103:26c058fa0bc1 104:2ba8f9ef1417
75 extern OPFUNC(pseudo_endsection); 75 extern OPFUNC(pseudo_endsection);
76 extern OPFUNC(pseudo_pragma); 76 extern OPFUNC(pseudo_pragma);
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);
81 extern OPFUNC(pseudo_ifndef);
80 82
81 instab_t instab[] = 83 instab_t instab[] =
82 { 84 {
83 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh }, 85 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh },
84 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 }, 86 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 },
361 { "ifge", { -1, -1, -1, -1}, pseudo_ifge, 1 }, 363 { "ifge", { -1, -1, -1, -1}, pseudo_ifge, 1 },
362 { "iflt", { -1, -1, -1, -1}, pseudo_iflt, 1 }, 364 { "iflt", { -1, -1, -1, -1}, pseudo_iflt, 1 },
363 { "ifle", { -1, -1, -1, -1}, pseudo_ifle, 1 }, 365 { "ifle", { -1, -1, -1, -1}, pseudo_ifle, 1 },
364 { "endc", { -1, -1, -1, -1}, pseudo_endc, 1 }, 366 { "endc", { -1, -1, -1, -1}, pseudo_endc, 1 },
365 { "else", { -1, -1, -1, -1}, pseudo_else, 1 }, 367 { "else", { -1, -1, -1, -1}, pseudo_else, 1 },
368 { "ifdef", { -1, -1, -1, -1}, pseudo_ifdef, 1},
369 { "ifndef", { -1, -1, -1, -1}, pseudo_ifndef, 1},
366 370
367 { "macro", { -1, -1, -1, -1}, pseudo_macro, 1, 0, 1 }, 371 { "macro", { -1, -1, -1, -1}, pseudo_macro, 1, 0, 1 },
368 { "endm", { -1, -1, -1, -1}, pseudo_endm, 1, 1, 1 }, 372 { "endm", { -1, -1, -1, -1}, pseudo_endm, 1, 1, 1 },
369 373
370 { "setdp", { -1, -1, -1, -1}, pseudo_setdp }, 374 { "setdp", { -1, -1, -1, -1}, pseudo_setdp },