- Make .asciz macro accept a varaiable number of arguments
- add CR and LF definitions, since MASM doesn't like "\r\n" codes

svn path=/trunk/; revision=52323
This commit is contained in:
Timo Kreuzer 2011-06-17 21:57:34 +00:00
parent d017f0fe2b
commit 7752209fdf

View file

@ -52,11 +52,13 @@ ENDM
ENDM
/* MASM doesn't have an ASCIZ macro */
.ASCIZ MACRO text
DB text, 0
.ASCIZ MACRO text:VARARG
DB text
DB 0
ENDM
.asciz MACRO text
DB text, 0
.asciz MACRO text:VARARG
DB text
DB 0
ENDM
.code64 MACRO
@ -158,6 +160,9 @@ ENDM
/* We need this to distinguish repeat from macros */
#define ENDR ENDM
#define CR 13
#define LF 10
#else /***********************************************************************/
/* Force intel syntax */
@ -305,4 +310,7 @@ ENDM
#define else .else
#define elseif .elseif
#define CR "\r"
#define LF "\n"
#endif