Cyrill Gorcunov
99a055add9
BR3392200: preproc - Fix dangling paste term
...
In case if there a production
{tok},{%+},{whitespace}*
the preprocessor does not delete
ending paste+spaces tokens. Fix it.
http://bugzilla.nasm.us/show_bug.cgi?id=3392200
Reported-by: KO Myung-Hun <komh@chollian.net>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-27 11:12:06 +04:00
H. Peter Anvin
bd8cef73d1
nasm.spec.in: switch to .xz as the source file
...
Switch the source file to use for the SRPM to the .xz file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-26 08:19:56 -08:00
H. Peter Anvin
78d59e370d
misc/release: do xz compression with -9e
...
Use the -9e compression level when doing xz compression. It only
saves a few kilobytes, but since our files are pretty small it doesn't
really take all that much time.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:49:25 -08:00
H. Peter Anvin
0d008c52ab
insns.dat: MOV is not lockable; CMPXCHG16B does not support HLE
...
Using a LOCK prefix with MOV is not permitted.
The CMPXCHG16B instruction is not defined to support HLE.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:38:42 -08:00
H. Peter Anvin
e014f354d5
HLE: One more byte code conversion
...
Add missing site for the \265..267 -> \271..273 byte code move.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:35:19 -08:00
H. Peter Anvin
574784d177
HLE: Move byte codes back to \271-\273
...
Since we are back to three bytecodes, move them back to the \271-\273
slot to free up the \264 complete quad.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:33:46 -08:00
H. Peter Anvin
e9d46c48e4
NASM 2.10rc11
2012-02-25 22:23:32 -08:00
H. Peter Anvin
fb3f4e6ddb
HLE: Change NOHLE to be an instruction flag
...
The way our matching system works we have to make NOHLE an instruction
flag rather than an byte code; by the time we run the byte code
interpreter we have already picked an instruction pattern once and for
all.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:22:07 -08:00
H. Peter Anvin
c5473121af
tag-release: actually push data out unless --no-push is given
...
Rather than just printing a list of commands, do them, unless
--no-push is given...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 22:02:08 -08:00
H. Peter Anvin
75fa99713c
NASM 2.10rc10
2012-02-25 21:59:36 -08:00
H. Peter Anvin
74d23af7b8
release: create .xz files; remove empty subdirectories
...
Create .xz files as well as .gz and .bz2; remove empty subdirectories
from the xdoc archives.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 21:30:33 -08:00
H. Peter Anvin
38e57c5084
doc: Remove some ugliness from the win64 section
...
Clean up the formatting of the Win64 examples.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:50:32 -08:00
H. Peter Anvin
c65035ecdb
psfonts.ph: increase leading to font size+20%
...
Increase the leading from +10% to +20%, (12 pt leading for the 10 pt
bulk text.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:46:38 -08:00
H. Peter Anvin
6b8cc128f3
changes: document bigendian UTF-16/UTF-32 support
...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:34:14 -08:00
H. Peter Anvin
9fa2e72997
Add support for UTF-16BE and UTF-32BE
...
Add support for bigendian UTF-16 and UTF-32, and (for symmetry) add
explicitly littleendian operators.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:29:37 -08:00
H. Peter Anvin
5a24fdd547
Make the LOCK and HLE warnings suppressable.
...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:11:11 -08:00
H. Peter Anvin
c92aaa1d49
doc: Document elfx32 support
...
Document the new elfx32 backend.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:05:45 -08:00
H. Peter Anvin
80fd1a5f0d
doc: Move the EPS logo down by 1"
...
The default page-centered position doesn't work too well with the
title and the new logo, so move the new logo down the page a bit.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 14:55:12 -08:00
Cyrill Gorcunov
2a50c9128f
doc: New NASM logo
...
Update to a new NASM logo.
2012-02-25 14:53:34 -08:00
H. Peter Anvin
13ac842709
doc: Allow repositioning the EPS logo
...
Allow specifying an offset from the computed position of the EPS logo:
\M{logoxadj}{adjustment}
\M{logoyadj}{adjustment}
The adjustment is given in Postscript points (1/72" = 0.352778 mm) and
using the Postscript coordinate system, with the origin in the lower
left.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 14:51:01 -08:00
H. Peter Anvin
8aa01db9b4
Update copyright year to 2012
2012-02-25 14:45:44 -08:00
H. Peter Anvin
0ab83c9e9c
NASM 2.10rc9
2012-02-25 13:31:16 -08:00
H. Peter Anvin
8a44aa49c8
doc: Document AVX2, BMI1, BMI2 and TSX support.
...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 13:30:41 -08:00
H. Peter Anvin
7687dded2d
Assume the undocumented CMPXCHG486 opcode was lockable
...
Someone who actually knows about this opcode and has a 486 to test on
may want to verify this.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 12:35:33 -08:00
Cyrill Gorcunov
a94601f83c
insns.dat: Add IF_LOCK flag on appropriate instructions
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-26 00:25:37 +04:00
H. Peter Anvin
c3bfc7f643
Clean up JMP/CALL patterns, especially for 64 bits
...
Clean up JMP/CALL patterns so they don't disassemble quite so uglily.
Fix a CALL pattern which would have incorrectly generated a (harmless)
REX.W prefix.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 12:13:50 -08:00
Cyrill Gorcunov
b496c68f91
insns.dat: Add nohle for MOV in case of moffset destination
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-26 00:07:27 +04:00
Cyrill Gorcunov
922f5e2dac
insns.dat: Add hlexr flag for MOV instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
ab6057926b
insns.dat: Add hlenl flag for XCHG instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
93e170f585
insns.dat: Add hle flag for XADD instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
5c4d23a039
insns.dat: Add hle flag for XOR instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
3403477b96
insns.dat: Add hle flag for SUB instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
b556a03847
insns.dat: Add hle flag for SBB instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
0626db9eb9
insns.dat: Add hle flag for OR instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
7d072f0ca9
insns.dat: Add hle flag for NOT instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:09 +04:00
Cyrill Gorcunov
7aec2435f6
insns.dat: Add hle flag for NEG instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:53:08 +04:00
Cyrill Gorcunov
94a7645ec9
insns.dat: Add hle flag for INC instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:45 +04:00
Cyrill Gorcunov
47fe219004
insns.dat: Add hle flag for DEC instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
e520db7f49
insns.dat: Add hle flag for CMPXCHG16B instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
aea6453c8b
insns.dat: Add hle flag for CMPXCHG8B instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
08a291d0da
insns.dat: Add hle flag for CMPXCHG instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
6763e28b68
insns.dat: Add hle flag for BTS instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
e7a9ec3676
insns.dat: Add hle flag for BTR instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
75150e2df4
insns.dat: Add hle flag for BTC instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
e844844321
insns.dat: Add hle flag for AND instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
e30aef38da
insns.dat: Add hle flag for ADC instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
Cyrill Gorcunov
dec6037fa7
insns.dat: Add hle flag for ADD instruction
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2012-02-25 23:51:44 +04:00
H. Peter Anvin
9898c80cb1
disasm: ignore opcodes 370 and 371
2012-02-25 11:46:56 -08:00
H. Peter Anvin
755f5214b7
Remove all remaining explicit bytecodes from insns.dat
...
Get rid of the last vestiges of the explicit byte codes in insns.dat.
The only files that now depend on actual byte code numbers are
insns.pl, assemble.c and disasm.c.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 11:41:34 -08:00
H. Peter Anvin
8cc8a1d836
Add support for warning on invalid LOCK prefixes
...
Add an LOCK flag to the instruction template, and make the presence of
a LOCK prefix trigger a warning if it is not set. Simplify the LOCK
and HLE logic by hard-coding the knowledge that operand 0 has to be
memory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 11:11:42 -08:00