flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
VEG 03 May 2017, 11:02
Ok, I can see one possible flaw of this suggestion with current syntax of label type/size hint. But it can be addressed like I've written here.
Code: labelname := dword $-4 labelname := {4} $-4 It will be possible if some special syntax for type/size hinting will be introduced, like I've written in the example. |
|||
![]() |
|
Tomasz Grysztar 03 May 2017, 19:08
VEG wrote: Ok, I can see one possible flaw of this suggestion with current syntax of label type/size hint. But it can be addressed like I've written here. |
|||
![]() |
|
VEG 03 May 2017, 20:00
Ok, maybe the idea with these custom sizes is too audacious. But at least ":=" can work like label with hardcoded set of sizes (byte/word/dword/qword/etc). Actually, I don't know why it can be useful to set a non-standard size of a label. None of the instructions will gain some useful information from such non-standard sizes.
Of course I can write a macro which will translate "lbl := dword $ - 4" into "label lbl:dword at $ - 4". But it seems that it could be a built-in feature also. That's it. At least keep in mind this idea. Maybe you will like it someday ![]() |
|||
![]() |
|
Tomasz Grysztar 03 May 2017, 20:25
In fasm 1 you could write "lbl = dword $" and it meant something else than what you propose. Note that there is a difference in meaning between "dword lbl" and "dword [lbl]".
|
|||
![]() |
|
VEG 03 May 2017, 20:44
Quote: Note that there is a difference in meaning between "dword lbl" and "dword [lbl]". |
|||
![]() |
|
revolution 04 May 2017, 08:16
VEG wrote: Operator ":=" can be extended to replace "label" completely. One of the best features of fasmg for me is the elimination of the curly bracket requirements. And I wouldn't like to see it slowly go back to a series of "special" characters like most websites now want us to put in our passwords. All IMO of course. |
|||
![]() |
|
VEG 04 May 2017, 10:57
revolution, syntax with {} was suggested only for internal purposes. Programmer will use "dword" and "word" in code of a program. Exactly as it was before. Only macros need some changes. Explanation is here.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.