flat assembler
Message board for the users of flat assembler.
Index
> Main > [FASM preprocessor] how to bridge the two strings? |
Author |
|
Roman 12 Dec 2013, 14:44
I want do like this:
Dir EQU "C:\fasm\" include Dir # "include\win32a.inc" But fasm compiled error. How fixed this trouble ? |
|||
12 Dec 2013, 14:44 |
|
sleepsleep 12 Dec 2013, 14:47
have you try checking windows environment variable?
|
|||
12 Dec 2013, 14:47 |
|
revolution 12 Dec 2013, 19:12
You will need to use a macro/match block to get the processing order correct.
Code: Dir EQU "C:\fasm\" match x,Dir {include x#"include\win32a.inc" } |
|||
12 Dec 2013, 19:12 |
|
Roman 13 Dec 2013, 14:18
revolution
match not help. |
|||
13 Dec 2013, 14:18 |
|
baldr 13 Dec 2013, 14:30
Roman,
Macrooperator # works only inside macroblock (that's the gist of what revolution had said). Show your non-working source (considering that). |
|||
13 Dec 2013, 14:30 |
|
Roman 13 Dec 2013, 14:46
A write my code in first post
Code: Dir EQU "C:\fasm\" include Dir # "include\win32a.inc" |
|||
13 Dec 2013, 14:46 |
|
baldr 13 Dec 2013, 14:52
Roman,
Macrooperator # is not inside macroblock (i.e. { } of sorts). |
|||
13 Dec 2013, 14:52 |
|
EaxRax 14 Dec 2013, 00:20
Roman
Я проверил. Всё работает. Перепиши весь код в точности, который написал revolution, себе в исходник. Пропиши правильный путь, к папке FASM. Убедись, что в папке FASM, есть папка INCLUDE. Если всё сделал правильно, то всё должно заработать. З.Ы. Прикрепил программу для теста (с папкой FASM) (100% работает). Распакуй в любую директорию и запусти файл Compile.bat, для компиляции. =================================================================== I checked. Everything works. Copy all code in accuracy, which wrote by revolution, in your source code. Prescribe the right path to the folder FASM. Make sure that the folder FASM, there is a folder INCLUDE. If you did everything correctly, then it should work. P.S. Attached to the test program (with a folder FASM) (100% working). Unzip to any directory and run the file Compile.bat, to compile.
|
|||||||||||
14 Dec 2013, 00:20 |
|
Roman 14 Dec 2013, 13:17
EaxRax
На какой версии Fasm-a компилил ? |
|||
14 Dec 2013, 13:17 |
|
baldr 14 Dec 2013, 15:57
Roman,
Does it matter? I've tried that approach on every fasm version I posess, from 1.62 (when match directive was introduced). Works as expected. |
|||
14 Dec 2013, 15:57 |
|
EaxRax 15 Dec 2013, 00:02
Roman wrote: EaxRax |
|||
15 Dec 2013, 00:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.