flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 09 May 2025, 02:29
fasmw 1.73 have neg for macro ?
Code: v = -1 b = neg v ;=1 |
|||
![]() |
|
revolution 09 May 2025, 02:49
Code: b = -v |
|||
![]() |
|
Roman 09 May 2025, 02:58
I do.
b = not (v)+1 This variant correct? |
|||
![]() |
|
revolution 09 May 2025, 04:48
If v is an EQU then use:
Code: b = -(v) |
|||
![]() |
|
revolution 10 May 2025, 00:28
What do you mean by "does not work"?
Code: mov eax, not 1 a = not 1 db a dw a dd a dq a $ fasm test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1 passes, 21 bytes. $ hd test.bin 00000000 66 b8 fe ff ff ff fe fe ff fe ff ff ff fe ff ff |f...............| 00000010 ff ff ff ff ff |.....| 00000015 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.