title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
.SAVEREG | Microsoft Docs |
11/04/2016 |
|
article |
|
|
|
1dbc2ef6-a197-40e7-9e55-fddcae8cef29 |
8 |
corob-msft |
corob |
ghogen |
Generates either a UWOP_SAVE_NONVOL
or a UWOP_SAVE_NONVOL_FAR
unwind code entry for the specified register (reg
) and offset (offset
) using the current prologue offset. MASM will choose the most efficient encoding.
.SAVEREG reg, offset
.SAVEREG allows ml64.exe users to specify how a frame function unwinds and is only allowed within the prologue, which extends from the PROC FRAME declaration to the .ENDPROLOG directive. These directives do not generate code; they only generate .xdata
and .pdata
. .SAVEREG should be preceded by instructions that actually implement the actions to be unwound. It is a good practice to wrap both the unwind directives and the code they are meant to unwind in a macro to ensure agreement.
For more information, see MASM for x64 (ml64.exe).