flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > pp/compiler equ bug |
Author |
|
Dragontamer 05 Sep 2004, 19:05
Yes. That is true.
equ is ignored by if statements. I think this is known already though. |
|||
05 Sep 2004, 19:05 |
|
Tomasz Grysztar 05 Sep 2004, 19:35
Read the FAQ!!!
In FASM = symbol should be used for such purposes, EQU is more like a macro and works different way. |
|||
05 Sep 2004, 19:35 |
|
comrade 05 Sep 2004, 19:45
maurifull wrote: Latest fasm has bug replacing symbolic constants This worked before in previous FASM? |
|||
05 Sep 2004, 19:45 |
|
maurifull 05 Sep 2004, 20:15
Privalov wrote: Read the FAQ!!! Sorry, I'm very new to fasm, but isn't = symbol for numeric constants only? I just posted an small sample, what I'm actually using is TARGET equ <one of DOS, Linux, Win32> and then conditionally defining other symbols & assembling code based on that define. Sorry if it is a nonsense, I'll continue my fasm studying |
|||
05 Sep 2004, 20:15 |
|
maurifull 05 Sep 2004, 20:17
comrade wrote:
I don't know, stating 'last xxx project' is a report costume to inform one is using the latest version |
|||
05 Sep 2004, 20:17 |
|
Tomasz Grysztar 05 Sep 2004, 20:23
maurifull wrote: Sorry, I'm very new to fasm, but isn't = symbol for numeric constants only? Yes, but your sample was also using numbers only. |
|||
05 Sep 2004, 20:23 |
|
maurifull 05 Sep 2004, 20:31
Privalov wrote:
I know, that's why I stated I use it another way Here you have an example Code: if _PLATFORM_ eq Linux eol equ 10 else if _PLATFORM_ eq Win32 | _PLATFORM_ eq DOS eol equ 13,10 end if How can you make such definition by not using equ? |
|||
05 Sep 2004, 20:31 |
|
Tomasz Grysztar 05 Sep 2004, 20:35
Yes, for such case conditional preprocessing is needed - I saw you have already found this thread.
PS. Use slashes, not backslashes, to end the BBCode tags - I was correcting it in your posts. |
|||
05 Sep 2004, 20:35 |
|
maurifull 05 Sep 2004, 20:40
Privalov wrote: Yes, for such case conditional preprocessing is needed - I saw you have already found this thread. Hehe, I'm going everywhere I'll take a new look. Privalov wrote: PS. Use slashes, not backslashes, to end the BBCode tags - I was correcting it in your posts. Thanks, I noticed some things were not displaying right. |
|||
05 Sep 2004, 20:40 |
|
Tomasz Grysztar 05 Sep 2004, 20:43
maurifull wrote: Hehe, I'm going everywhere I commend it. |
|||
05 Sep 2004, 20:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.