diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-06 22:56:51 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-08-06 22:56:51 -0700 |
commit | 41bb8a8114042531e7831cbf2155185ae039297c (patch) | |
tree | a68f8d59fd968e4030fc5655f6e0ab3895f50900 /travis | |
parent | d13a6f9708af6dab58b245a9ac2702ecc8e23304 (diff) | |
download | nasm-41bb8a8114042531e7831cbf2155185ae039297c.tar.gz |
Warn if trying to assemble obsolete instructions
Print a warning if one tries to assemble an obsolete instruction,
unless there is an exact match for the CPU directive.
For example:
CPU 386
POP CS ; Warning - obsolete instruction
CPU 8086
POP CS ; No warning
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'travis')
-rw-r--r-- | travis/test/pushseg.json | 3 | ||||
-rw-r--r-- | travis/test/pushseg.stderr | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/travis/test/pushseg.json b/travis/test/pushseg.json index 657b8b47..32bc0f72 100644 --- a/travis/test/pushseg.json +++ b/travis/test/pushseg.json @@ -5,7 +5,8 @@ "format": "bin", "source": "pushseg.asm", "target": [ - { "output": "pushseg.bin" } + { "output": "pushseg.bin" }, + { "stderr": "pushseg.stderr" } ] } ] diff --git a/travis/test/pushseg.stderr b/travis/test/pushseg.stderr new file mode 100644 index 00000000..2bf22630 --- /dev/null +++ b/travis/test/pushseg.stderr @@ -0,0 +1 @@ +./travis/test/pushseg.asm:17: warning: obsolete instruction invalid on the target CPU [-w+obsolete] |