flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > push/pop instruction arguments

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 10 Nov 2017, 21:04
why push/pop instructions arguments can not be separated by comma, but only by space?
Code:
push ax ebx word [0x1234]
pop edx,ecx,eax    

_________________
smaller is better
Post 10 Nov 2017, 21:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 11 Nov 2017, 02:12
It's an extension to the "real" push/pop instruction so there is no official method for multiple arguments. It also allows the arguments in the uses clause to be placed directly in push (but not pop).

Anyhow it is a hangover from other assemblers so it became kind of "standard" syntax.
Post 11 Nov 2017, 02:12
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.