Mercurial > hg > index.cgi
comparison lwasm/pragma.c @ 377:67373a053c49
Add ?rts target for branch instructions
Add a ?rts target for branch instructions, which brances to the nearest RTS
or inverts the branch logic to branch around a generated RTS. Activated by a
pragma "qrts".
Thanks to Erik G <erik@6809.org> for the patch.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 13 Jul 2015 20:50:02 -0600 |
parents | 35d4213e6657 |
children | d791d47afc48 |
comparison
equal
deleted
inserted
replaced
376:35d4213e6657 | 377:67373a053c49 |
---|---|
66 { "testmode", "notestmode", PRAGMA_TESTMODE }, | 66 { "testmode", "notestmode", PRAGMA_TESTMODE }, |
67 { "c", "noc", PRAGMA_C }, | 67 { "c", "noc", PRAGMA_C }, |
68 { "cc", "nocc", PRAGMA_CC }, | 68 { "cc", "nocc", PRAGMA_CC }, |
69 { "cd", "nocd", PRAGMA_CD }, | 69 { "cd", "nocd", PRAGMA_CD }, |
70 { "ct", "noct", PRAGMA_CT }, | 70 { "ct", "noct", PRAGMA_CT }, |
71 { "qrts", "noqrts", PRAGMA_QRTS }, | |
71 { 0, 0, 0 } | 72 { 0, 0, 0 } |
72 }; | 73 }; |
73 | 74 |
74 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr) | 75 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr) |
75 { | 76 { |