Created
November 26, 2012 12:14
-
-
Save tuttlem/4147906 to your computer and use it in GitHub Desktop.
Simple Window - New Macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; copies data from one memory location to another | |
m2m MACRO M1, M2 | |
push M2 | |
pop M1 | |
ENDM | |
; syntactic sugar for returning a value | |
return MACRO arg | |
mov eax, arg | |
ret | |
ENDM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment