flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Macroinstructions > macro neg ? | 
| Author | 
 | 
| Roman 09 May 2025, 02:29 fasmw 1.73 have neg for macro ?
 Code: v = -1 b = neg v ;=1 | |||
|  09 May 2025, 02:29 | 
 | 
| revolution 09 May 2025, 02:49 Code: b = -v | |||
|  09 May 2025, 02:49 | 
 | 
| Roman 09 May 2025, 02:58 I do.
 b = not (v)+1 This variant correct? | |||
|  09 May 2025, 02:58 | 
 | 
| revolution 09 May 2025, 04:48 If v is an EQU then use:     Code: b = -(v) | |||
|  09 May 2025, 04:48 | 
 | 
| a 09 May 2025, 23:15 Last edited by a on 04 Jun 2025, 10:23; edited 1 time in total | |||
|  09 May 2025, 23:15 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.