Warn if trying to assemble obsolete instructions
commit41bb8a8114042531e7831cbf2155185ae039297c
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 7 Aug 2019 05:56:51 +0000 (6 22:56 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 7 Aug 2019 05:56:51 +0000 (6 22:56 -0700)
treea68f8d59fd968e4030fc5655f6e0ab3895f50900
parentd13a6f9708af6dab58b245a9ac2702ecc8e23304
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>
asm/assemble.c
travis/test/pushseg.json
travis/test/pushseg.stderr [new file with mode: 0644]