mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 19:35:44 +00:00
[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
This commit is contained in:
parent
d017f0fe2b
commit
7752209fdf
1 changed files with 12 additions and 4 deletions
|
@ -52,11 +52,13 @@ ENDM
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
/* MASM doesn't have an ASCIZ macro */
|
/* MASM doesn't have an ASCIZ macro */
|
||||||
.ASCIZ MACRO text
|
.ASCIZ MACRO text:VARARG
|
||||||
DB text, 0
|
DB text
|
||||||
|
DB 0
|
||||||
ENDM
|
ENDM
|
||||||
.asciz MACRO text
|
.asciz MACRO text:VARARG
|
||||||
DB text, 0
|
DB text
|
||||||
|
DB 0
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
.code64 MACRO
|
.code64 MACRO
|
||||||
|
@ -158,6 +160,9 @@ ENDM
|
||||||
/* We need this to distinguish repeat from macros */
|
/* We need this to distinguish repeat from macros */
|
||||||
#define ENDR ENDM
|
#define ENDR ENDM
|
||||||
|
|
||||||
|
#define CR 13
|
||||||
|
#define LF 10
|
||||||
|
|
||||||
#else /***********************************************************************/
|
#else /***********************************************************************/
|
||||||
|
|
||||||
/* Force intel syntax */
|
/* Force intel syntax */
|
||||||
|
@ -305,4 +310,7 @@ ENDM
|
||||||
#define else .else
|
#define else .else
|
||||||
#define elseif .elseif
|
#define elseif .elseif
|
||||||
|
|
||||||
|
#define CR "\r"
|
||||||
|
#define LF "\n"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue