In asxlat, translate ! to ~ (not operator; used with bic instruction) master
authorNick Downing <nick@ndcode.org>
Thu, 11 Aug 2022 07:29:51 +0000 (17:29 +1000)
committerNick Downing <nick@ndcode.org>
Thu, 11 Aug 2022 07:29:51 +0000 (17:29 +1000)
as0.c

diff --git a/as0.c b/as0.c
index 3a0b32f..8f18993 100644 (file)
--- a/as0.c
+++ b/as0.c
@@ -3007,6 +3007,9 @@ void p0expres() {
 /*     '!;     binop */
 
                case TNOT:
+#ifdef TRANSLATE
+ xbufp[-1] = '~';
+#endif
                        p0binop();
                        break;