diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-10-16 14:29:16 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-10-16 14:29:16 -0700 |
commit | 84b852bff0ee7085245defbeb38d6218052579ae (patch) | |
tree | 78f08be964725c1d9ad619fe811575015b7f6214 /test | |
parent | d03a6c8ffedd1496221eca5f02ba0215794cfaf9 (diff) | |
download | nasm-84b852bff0ee7085245defbeb38d6218052579ae.tar.gz |
Implement an enhanced version of MASM's dup() and "db ?" syntax.
Add support for complex data (Dx) statement expressions involving both
initialized and uninitialized data. In addition, we have support for
overriding the size of each element on an individual item and/or list
basis.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/dup.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/dup.asm b/test/dup.asm new file mode 100644 index 00000000..2e939119 --- /dev/null +++ b/test/dup.asm @@ -0,0 +1,21 @@ + bits 32 + + db 33 + db (44) +; db (44,55) -- error + db %(44,55) + db %('XX','YY') + db ('AA') + db %('BB') + db ? + db 6 dup (33) + db 6 dup (33, 34) + db 6 dup (33, 34), 35 + db 7 dup (99) + db 7 dup (?,?) + dw byte (?,44) + + dw 0xcc, 4 dup byte ('PQR'), ?, 0xabcd + + dd 16 dup (0xaaaa, ?, 0xbbbbbb) + dd 64 dup (?) |