flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Why not using line num for Jmp jnz? |
Author |
|
revolution 01 Jul 2021, 10:15
Easy to implement. It is just some code to write to make a fasm version of your own that you like.
One method might be to have the preprocessor construct automatic labels and insert them before each line. Or maybe some other method if there is a better way to do it. And if you post your changes here, maybe others will like it also and use it. Doesn't hurt to try. |
|||
01 Jul 2021, 10:15 |
|
ProMiNick 01 Jul 2021, 12:11
what if line(from where jump happened) would be defined in macro? Where should go jump then? to line in that macro, to line in file where macro defined, to line in file where macro used?
It will bring in syntax more complexes. |
|||
01 Jul 2021, 12:11 |
|
Roman 01 Jul 2021, 15:25
Its good for smal peaces code.
Like as procs. And Used only in non-macro. |
|||
01 Jul 2021, 15:25 |
|
ProMiNick 01 Jul 2021, 16:14
Roman wrote: And Used only in non-macro. proc is a typical macro for exampe. But if thou mean this feature needed only inside of procs - thou could extend macro proc (but in fasmg) so each line of proc would be autolabeled. Maybe when thou will see how compilation will be slowed after that thou will agree that convinience of autolabeling cost too much. _________________ I don`t like to refer by "you" to one person. My soul requires acronim "thou" instead. |
|||
01 Jul 2021, 16:14 |
|
bitRAKE 01 Jul 2021, 16:36
Line number seems arbitrary unless it's relative and even then it's not anchored to any text - so, would need frequent edits - the opposite of what one wants to achieve, imho.
Betov (of SpAsm/RosAsm* fame) liked a method which actually worked well in practice - cut-n-paste of code rarely required editing: it consisted of using <> characters to select the label - one < would mean the previous label, and two < would mean the label before the previous label. [*] 32-bit assembler still active, very different from standard x86 syntax. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
01 Jul 2021, 16:36 |
|
Roman 31 Jul 2021, 14:46
|
|||
31 Jul 2021, 14:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.