Any sample codes for .saveframe, .pushreg, .savereg…?

MSDN documents for .saveframe, .pushreg, .savereg, .savexmm128, .setframe, etc don’t contain any helpful information.

Do you know any documents which explain how to use them, how they are different from each other, especially .pushreg and .savereg? And how to use .savexmm128?

Added : There is a good documentation on x64 assembly coding. This one is from a open source assembler, YASM.  This document explains the most basic things : What a frame function is, a simple example.

However, the example doesn’t contain epilog code which is parallel to the one in prolog block.
On Windows, if there is no “pop”s in the end of a function, it crashes. (Tested with the ml64.exe, not the YASM.)

Anyway, there is no explanation on the difference of .savereg and .pushreg.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: