flat assembler
Message board for the users of flat assembler.
Index
> Main > eax dd ? |
Author |
|
ouadji 02 Nov 2010, 15:09
Code: struct C eax dd ? ends B C mov eax,[B.eax] ;2 passes 8 bytes |
|||
02 Nov 2010, 15:09 |
|
ouadji 02 Nov 2010, 15:18
Code:
eax dd ? ;alone
but "alone", this does not compile. it's illogical |
|||
02 Nov 2010, 15:18 |
|
revolution 02 Nov 2010, 15:21
struct is a macro, so anything is possible within it.
This would not work with struc though, you need to prepend a ".". |
|||
02 Nov 2010, 15:21 |
|
ouadji 02 Nov 2010, 15:36
ok, in this case the problem is the following for me: Which are the words allowed in "struct" (as labels) who are normally prohibited elsewhere? edit: ---- That said, I stand by what I said. Allowed in a struct, not outside ... this does not give an overall consistency to the compiler a macro, like struct, should not be allowed that the compiler itself does not! (sorry for my english) |
|||
02 Nov 2010, 15:36 |
|
revolution 02 Nov 2010, 21:59
Why do you want to restrict macros in what they can do? that would reduce the functionality of fasm.
ouadji wrote: Which are the words allowed in "struct" (as labels) |
|||
02 Nov 2010, 21:59 |
|
ouadji 02 Nov 2010, 22:16
Quote: ... since the labels are built up from the structure name and the member tags ... thank you revolution for this magic sentence. All words are allowed inside a "struct", ok. (This is indeed logical if labels name are built up from the structure name) |
|||
02 Nov 2010, 22:16 |
|
bitshifter 03 Nov 2010, 03:11
I often use a dot prefix to use reserved keywords as labels...
Code: ... .ret: ;<-- label ret ;<-- instruction |
|||
03 Nov 2010, 03:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.