News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

how does uses work exactly?

Started by ecube, June 06, 2007, 05:27:32 PM

Previous topic - Next topic

ecube


hutch--

cube,

The USES notation automates the preervation of registers in and out of a procedure including multiple exit locations in that procedure. If you have,


USES ESI EDI    ; in your procedure

push esi
push edi

; then anywhere where there is a RET

pop edi
pop esi


Personally I would recommend learning how to use them manually as you get cleaner exits and you can use a single exit as a collector to avoid duplication.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php