From 7752209fdff014baa9889b452559789e3185b7db Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 17 Jun 2011 21:57:34 +0000 Subject: [PATCH] [ASM] - 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 --- reactos/include/asm/asm.inc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/reactos/include/asm/asm.inc b/reactos/include/asm/asm.inc index 049dda5628c..8921d093f25 100644 --- a/reactos/include/asm/asm.inc +++ b/reactos/include/asm/asm.inc @@ -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