flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > include and fix |
Author |
|
CandyMan 22 Jul 2016, 16:46
include directive supports only quoted string as param
method 1: make.bat: Code: fasm source.asm source.asm: Code: include "Block\init_A.asm" include "Block2\init_A.asm" you can use environment method 2: make.bat: Code: set DirA=Block set DirB=Block2 fasm source.asm source.asm: Code: include "%DirA%\init_A.asm" include "%DirB%\init_A.asm" method 3: make.bat: Code: set INCLUDE=Block;Block2 fasm source.asm source.asm: Code: include "init_A.asm" include "init_B.asm" method 4: source.asm: Code: DirA fix "Block\init_A.asm" DirB fix "Block2\init_A.asm" include DirA include DirB _________________ smaller is better |
|||
22 Jul 2016, 16:46 |
|
revolution 22 Jul 2016, 19:25
method 5, use the match luke:
Code: DirA EQU 'Block\' DirB EQU 'Block2\' match d,DirA{include d#'init_A.asm'} match d,DirB{include d#'init_A.asm'} |
|||
22 Jul 2016, 19:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.