[ros-diffs] [tkreuzer] 52323: [ASM] - Make .asciz macro accept a varaiable number of arguments - add CR and LF definitions, since MASM doesn't like "\r\n" codes

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Jun 17 21:57:35 UTC 2011


Author: tkreuzer
Date: Fri Jun 17 21:57:34 2011
New Revision: 52323

URL: http://svn.reactos.org/svn/reactos?rev=52323&view=rev
Log:
[ASM]
- Make .asciz macro accept a varaiable number of arguments
- add CR and LF definitions, since MASM doesn't like "\r\n" codes

Modified:
    trunk/reactos/include/asm/asm.inc

Modified: trunk/reactos/include/asm/asm.inc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/asm/asm.inc?rev=52323&r1=52322&r2=52323&view=diff
==============================================================================
--- trunk/reactos/include/asm/asm.inc [iso-8859-1] (original)
+++ trunk/reactos/include/asm/asm.inc [iso-8859-1] Fri Jun 17 21:57:34 2011
@@ -52,11 +52,13 @@
 ENDM
 
 /* MASM doesn't have an ASCIZ macro */
-.ASCIZ MACRO text
-    DB text, 0
-ENDM
-.asciz MACRO text
-    DB text, 0
+.ASCIZ MACRO text:VARARG
+    DB text
+    DB 0
+ENDM
+.asciz MACRO text:VARARG
+    DB text
+    DB 0
 ENDM
 
 .code64 MACRO
@@ -157,6 +159,9 @@
 
 /* We need this to distinguish repeat from macros */
 #define ENDR ENDM
+
+#define CR 13
+#define LF 10
 
 #else /***********************************************************************/
 
@@ -305,4 +310,7 @@
 #define else .else
 #define elseif .elseif
 
+#define CR "\r"
+#define LF "\n"
+
 #endif




More information about the Ros-diffs mailing list