# HG changeset patch # User lost # Date 1237738326 0 # Node ID 29ba546ceea077a70eec7b2768234afafefd88ac # Parent 563adfccb645922915f8b01f3c84839946062656 Added ~ prefix operator (1s complement) diff -r 563adfccb645 -r 29ba546ceea0 ChangeLog --- a/ChangeLog Sun Mar 22 16:08:20 2009 +0000 +++ b/ChangeLog Sun Mar 22 16:12:06 2009 +0000 @@ -22,6 +22,7 @@ [+] added ability to "replace" members in LWAR [+] added support for "sym=expr" in the opcode field; this will define a global symbol (non-section) if it resolves to a constant +[+] added operator ~ as a prefix operator for a 1s complement in LWASM [b] arranged for output files for lwasm/lwlink to be removed if the assembly or linking fails [ ] DECB output of LWLINK now collapses contiguous output blocks into single diff -r 563adfccb645 -r 29ba546ceea0 lwasm/expr.c --- a/lwasm/expr.c Sun Mar 22 16:08:20 2009 +0000 +++ b/lwasm/expr.c Sun Mar 22 16:12:06 2009 +0000 @@ -230,7 +230,7 @@ return 0; } - if (**p == '^') + if (**p == '^' || **p == '~') { // parse expression following "^" (*p)++;