diff 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
line wrap: on
line diff
--- a/lwasm/pragma.c	Mon Jul 13 20:47:30 2015 -0600
+++ b/lwasm/pragma.c	Mon Jul 13 20:50:02 2015 -0600
@@ -68,6 +68,7 @@
 	{ "cc", "nocc", PRAGMA_CC },
 	{ "cd", "nocd", PRAGMA_CD },
 	{ "ct", "noct", PRAGMA_CT },
+	{ "qrts", "noqrts", PRAGMA_QRTS },
 	{ 0, 0, 0 }
 };