mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:36:23 +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
|
||||
|
||||
/* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue