flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > . |
Author |
|
mikegonta 11 Dec 2008, 17:19
[ Post removed by author. ]
Last edited by mikegonta on 28 Jan 2009, 09:03; edited 1 time in total |
|||
11 Dec 2008, 17:19 |
|
vid 11 Dec 2008, 19:06
no sane way to do it. that's one of FASM's main limitations: no nice string manipulation. you have to use 'file', 'txt', or something like that.
|
|||
11 Dec 2008, 19:06 |
|
bitRAKE 12 Dec 2008, 16:26
Well done, baldr. Could use rept to shift more to the preprocessor - doesn't seem to be a reason to though.
|
|||
12 Dec 2008, 16:26 |
|
vid 12 Dec 2008, 16:49
yep, that's exactly what i meant by "no sane way" and by "nice way"
Btw, you didn't solve the original problem. Problem was how to set symbolic constant to substring up to '.' character. You didn't do that. |
|||
12 Dec 2008, 16:49 |
|
baldr 12 Dec 2008, 17:26
vid,
Yes, but my wild guess at db ??? was about using parts of file name in data definitions… As I said already somewhere, I'm considering fasm interpretive layer Turing-complete (opposed to preprocessing, it should be simple yet useful). bitRAKE, fasm preprocessing is almost of no use here, let alone unnecessary source size increase (after preprocession ). However, irpc-style preprocessing directive will be useful (upcase macro can benefit from it, e.g.) |
|||
12 Dec 2008, 17:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.