diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-14 15:24:56 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-14 15:44:50 -0700 |
commit | 8981724f176ad18aaeac570faa5a26cc28bfef08 (patch) | |
tree | eb4c77810945791e9ee1cd3fa37b6ddd87c31a0e /include | |
parent | 02b60ddd1c86ba6d932301f4ab205027beafc688 (diff) | |
download | nasm-8981724f176ad18aaeac570faa5a26cc28bfef08.tar.gz nasm-8981724f176ad18aaeac570faa5a26cc28bfef08.tar.xz nasm-8981724f176ad18aaeac570faa5a26cc28bfef08.zip |
masm.mac, parser: VERY limited MASM emulation package
Very limited MASM emulation.
The parser has been extended to emulate the PTR keyword if the
corresponding macro is enabled, and the syntax displacement[index] for
memory operations is now recognized.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/nasm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nasm.h b/include/nasm.h index f108bdfa..860d1fc0 100644 --- a/include/nasm.h +++ b/include/nasm.h @@ -190,6 +190,8 @@ enum token_type { /* token types, other than chars */ TOKEN_STRFUNC, /* __utf16*__, __utf32*__ */ TOKEN_IFUNC, /* __ilog2*__ */ TOKEN_DECORATOR, /* decorators such as {...} */ + TOKEN_MASM_PTR, /* __masm_ptr__ for the masm package */ + TOKEN_MASM_FLAT, /* __masm_flat__ for the masm package */ TOKEN_OPMASK /* translated token for opmask registers */ }; |