summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-08-29 16:38:05 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-08-29 16:38:05 +0000
commit62b24d7e2fa3c53bd82d3053c7b9c38792275e65 (patch)
treef3710e7f4e5fdd1d13043df063479e79b68a5ea4 /nasm.h
parent14f8bf2edf69be882e149bf9dde65bccb367c975 (diff)
downloadnasm-62b24d7e2fa3c53bd82d3053c7b9c38792275e65.tar.gz
Add [default] directive
Add the [default {abs|rel}] directive, and clean up directive parsing.
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/nasm.h b/nasm.h
index 9bae66a6..dfd99337 100644
--- a/nasm.h
+++ b/nasm.h
@@ -924,6 +924,18 @@ struct dfmt {
#define TYM_ELEMENTS(x) (((x) & 0xFFFFFF00) >> 8)
#define TYS_ELEMENTS(x) ((x) << 8)
+
+/*
+ * -----
+ * Special tokens
+ * -----
+ */
+
+enum {
+ S_ABS, S_BYTE, S_DWORD, S_FAR, S_LONG, S_NEAR, S_NOSPLIT, S_QWORD, S_REL,
+ S_SHORT, S_STRICT, S_TO, S_TWORD, S_WORD
+};
+
/*
* -----
* Other