flat assembler
Message board for the users of flat assembler.

Index > Main > push ecx edi ebx

Author
Thread Post new topic Reply to topic
Dimas



Joined: 02 Sep 2010
Posts: 17
Dimas 05 Sep 2010, 11:28
push ecx edi ebx

This construction worked without any macro. Where it defined?
Post 05 Sep 2010, 11:28
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 05 Sep 2010, 12:13
fasm manual, section 2.1.1:
Quote:
If more operands follow in the same line (separated only with spaces, not commas), compiler will assemble chain of the push instructions with these operands.

That is another piece of TASM's heritage.
Post 05 Sep 2010, 12:13
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Sep 2010, 12:15

there is no macro to do this.
This is defined intrinsically in PREPROCE.INC and X86_64.INC

edit : sorry, I had not seen the message from Tomasz

_________________
I am not young enough to know everything (Oscar Wilde)- Image


Last edited by ouadji on 05 Sep 2010, 12:18; edited 1 time in total
Post 05 Sep 2010, 12:15
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 05 Sep 2010, 12:17
ouadji wrote:
This is defined intrinsically in PREPROCE.INC and X86_64.INC
Preprocessor has nothing to do with this. Wink
Post 05 Sep 2010, 12:17
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Sep 2010, 12:21

ok, only X86_64.INC

thank you Tomasz Wink

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Sep 2010, 12:21
View user's profile Send private message Send e-mail Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Sep 2010, 12:31
Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Sep 2010, 12:31
View user's profile Send private message Send e-mail Reply with quote
Dimas



Joined: 02 Sep 2010
Posts: 17
Dimas 05 Sep 2010, 12:31
I read manual many times...
It must be done once more... and once again... and more and more...

Thanks!
Post 05 Sep 2010, 12:31
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 05 Sep 2010, 12:48
ouadji: no, it is not. It is result of parser. Also, it follows just the general rules of parsing, "push" instruction is not treated specially by it.
Post 05 Sep 2010, 12:48
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Sep 2010, 14:59
it's from "Parser" ... ok.
Quote:

Also, it follows just the general rules of parsing,
"push" instruction is not treated specially by it.

Yes, I know that, but I thought that "preproce.inc" managed a part of pre-processing.
When i'm working with the debugger, i don't always know which file the code comes from !

thank you for this clarification Tomasz.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Sep 2010, 14:59
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 05 Sep 2010, 15:08
ouadji wrote:
Yes, I know that, but I thought that "preproce.inc" managed a part of pre-processing.
When i'm working with the debugger, i don't always know which file the code comes from !
You may find this thread interesting, as it partially describes the format of parsed source: http://board.flatassembler.net/topic.php?t=1194
It also contains links to few more thread about fasm's internals, however some of that information is not up to date, because fasm was expanded in many areas since then.
Post 05 Sep 2010, 15:08
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 05 Sep 2010, 15:49

yes indeed, this topic is very interresting.
Thank you very much Tomasz.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Sep 2010, 15:49
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.