comparison lwasm/pragma.c @ 442:a9521955554f 3.0

Added pragma pcaspcr to treat PC as PCR; additional fixes for PCR addressing modes
author lost@l-w.ca
date Sat, 30 Oct 2010 12:15:00 -0600
parents f5b77989f675
children
comparison
equal deleted inserted replaced
441:7b8d89435f30 442:a9521955554f
37 { "dollarnotlocal", PRAGMA_DOLLARNOTLOCAL }, 37 { "dollarnotlocal", PRAGMA_DOLLARNOTLOCAL },
38 { "noindex0tonone", PRAGMA_NOINDEX0TONONE }, 38 { "noindex0tonone", PRAGMA_NOINDEX0TONONE },
39 { "undefextern", PRAGMA_UNDEFEXTERN }, 39 { "undefextern", PRAGMA_UNDEFEXTERN },
40 { "cescapes", PRAGMA_CESCAPES }, 40 { "cescapes", PRAGMA_CESCAPES },
41 { "importundefexport", PRAGMA_IMPORTUNDEFEXPORT }, 41 { "importundefexport", PRAGMA_IMPORTUNDEFEXPORT },
42 { "pcaspcr", PRAGMA_PCASPCR },
42 { 0, 0 } 43 { 0, 0 }
43 }; 44 };
44 45
45 static const struct pragma_list reset_pragmas[] = 46 static const struct pragma_list reset_pragmas[] =
46 { 47 {
47 { "nodollarnotlocal", PRAGMA_DOLLARNOTLOCAL }, 48 { "nodollarnotlocal", PRAGMA_DOLLARNOTLOCAL },
48 { "index0tonone", PRAGMA_NOINDEX0TONONE }, 49 { "index0tonone", PRAGMA_NOINDEX0TONONE },
49 { "noundefextern", PRAGMA_UNDEFEXTERN }, 50 { "noundefextern", PRAGMA_UNDEFEXTERN },
50 { "nocescapes", PRAGMA_CESCAPES }, 51 { "nocescapes", PRAGMA_CESCAPES },
51 { "noimportundefexport", PRAGMA_IMPORTUNDEFEXPORT }, 52 { "noimportundefexport", PRAGMA_IMPORTUNDEFEXPORT },
53 { "nopcaspcr", PRAGMA_PCASPCR },
52 { 0, 0 } 54 { 0, 0 }
53 }; 55 };
54 56
55 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr) 57 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr)
56 { 58 {