platform/upstream/nasm.git
16 years agoFirst cut at AVX machinery.
H. Peter Anvin [Mon, 5 May 2008 00:53:31 +0000 (17:53 -0700)]
First cut at AVX machinery.

First cut at AVX machinery support.  The only instruction implemented
is VPERMIL2PS, and it's probably buggy.  I'm checking this in with the
hope that other people can start helping out with (a) testing this,
and (b) adding instructions.

NDISASM support is not there yet.

16 years agoInitial support for YMM (AVX) registers
H. Peter Anvin [Tue, 22 Apr 2008 02:44:55 +0000 (22:44 -0400)]
Initial support for YMM (AVX) registers

Add support for ymm0..15 registers, and the "ymmreg" qualifier.
No support yet for "yword" or "dy".

16 years agoAvoid long line warning when generating nasm docs
Charles Crayne [Sat, 12 Apr 2008 20:35:43 +0000 (13:35 -0700)]
Avoid long line warning when generating nasm docs

rdsrc.pl limits lines to 68 characters for some formats

16 years agoAvoid some warnings in rdoff/rdf2bin.c
Bo Borgerson [Sat, 12 Apr 2008 15:47:57 +0000 (11:47 -0400)]
Avoid some warnings in rdoff/rdf2bin.c

I received some warnings when running make on the head revision of
nasm from git:

----
rdf2bin.c: In function 'main':
rdf2bin.c:122: warning: comparison between signed and unsigned
rdf2bin.c:123: warning: comparison between signed and unsigned
rdf2bin.c:124: warning: comparison between signed and unsigned
----

I think these warnings are innocuous and should be safely avoidable
with simple casts (please see attached patch).

* rdoff/rdf2bin.c
(main): cast to size_t for comparison with fwrite return value

Signed-off-by: Bo Borgerson <gigabo@gmail.com>
16 years agoTemporaries in macros need a unique prefix; WSAA*() macros to header
H. Peter Anvin [Thu, 10 Apr 2008 21:56:09 +0000 (14:56 -0700)]
Temporaries in macros need a unique prefix; WSAA*() macros to header

When using temporaries in macros, given them a unique prefix to avoid
namespace collisions when using one macro inside another.

Move the WSAA*() macros from outelf32/outelf64 to a separate header
file.

16 years agoautogen.sh: remove config.status
H. Peter Anvin [Thu, 10 Apr 2008 21:54:02 +0000 (14:54 -0700)]
autogen.sh: remove config.status

Remove config.status when rebuilding the autoconf files.

16 years agoDocument avaiabily of DWARF for ELF32 and ELF64
Charles Crayne [Mon, 7 Apr 2008 21:26:29 +0000 (14:26 -0700)]
Document avaiabily of DWARF for ELF32 and ELF64

16 years agoCorrectly identify dwarf support for elf32
Charles Crayne [Mon, 7 Apr 2008 20:15:53 +0000 (13:15 -0700)]
Correctly identify dwarf support for elf32

Change architecture tag to i386.

16 years agoCorrectly identify SBYTE in the optimizer
H. Peter Anvin [Fri, 4 Apr 2008 20:34:53 +0000 (13:34 -0700)]
Correctly identify SBYTE in the optimizer

Correctly identify SBYTE in the optimizer, *HOWEVER*, this change will
cause nuisance warnings to be issued; that will have to be fixed.

16 years agoRestore critical expression checking when optimizer enabled
Charles Crayne [Thu, 27 Mar 2008 00:20:21 +0000 (17:20 -0700)]
Restore critical expression checking when optimizer enabled

In the prior code, enabling optimization effectively diabled
critical expression checking, because the optimization passes
took place before checking was enabled.

16 years agoMerge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm
Charles Crayne [Sun, 23 Mar 2008 03:08:20 +0000 (20:08 -0700)]
Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm

16 years agoRemove KATMAI support for CLFLUSH
Charles Crayne [Sun, 23 Mar 2008 03:07:08 +0000 (20:07 -0700)]
Remove KATMAI support for CLFLUSH

Minimal cpu level is WILLAMETTE,SSE2

16 years agoRemove redundant, bogus CLFLUSH entry
H. Peter Anvin [Sun, 23 Mar 2008 02:33:31 +0000 (19:33 -0700)]
Remove redundant, bogus CLFLUSH entry

16 years agoBetter handling of 32-bit imms in 64-bit moves
H. Peter Anvin [Wed, 19 Mar 2008 21:52:27 +0000 (14:52 -0700)]
Better handling of 32-bit imms in 64-bit moves

A much better way to handle the 32-bit immediates in 64-bit moves.
Add a test file.

16 years agoinsns.dat: add "MOV reg64,imm32" as a special rule
H. Peter Anvin [Wed, 19 Mar 2008 21:42:20 +0000 (14:42 -0700)]
insns.dat: add "MOV reg64,imm32" as a special rule

Add "MOV reg64,imm32" as a special rule, to handle the case of
"mov rax,dword <foo>", where <foo> is sign-extended; this is a 7-byte
form, as opposed to "mov eax,<foo>" (5 bytes) and "mov rax,<foo>" (10
bytes).

At some point, the optimizer needs to be able to handle these.

16 years agoCorrect opcode for CLFLUSH
Charles Crayne [Tue, 18 Mar 2008 22:21:14 +0000 (15:21 -0700)]
Correct opcode for CLFLUSH

Correct opcode is 0FAEh

16 years agoDisplay fully qualified local label in "not defined" message
Charles Crayne [Thu, 13 Mar 2008 05:39:03 +0000 (22:39 -0700)]
Display fully qualified local label in "not defined" message

Add new function "local_scope" to label subsystem to
return the previous non-local label for a given local label,
and invoke this funcion in eval.c to display the fully
qualified name in the "not defined" error message.

16 years agoAdjust symbol number for global symbols
Charles Crayne [Tue, 4 Mar 2008 22:25:34 +0000 (14:25 -0800)]
Adjust symbol number for global symbols

Reloc entries were pointing to wrong target section

16 years agoEliminate duplicate symbol definitions
Charles Crayne [Mon, 3 Mar 2008 22:43:55 +0000 (14:43 -0800)]
Eliminate duplicate symbol definitions

Don't accept -1 as an odd numbered segment

16 years agoReport dwarf as V2 for ELF32
Charles Crayne [Mon, 25 Feb 2008 05:05:46 +0000 (21:05 -0800)]
Report dwarf as V2 for ELF32

Older versions of gdb reject version 3

16 years agoDwarf3 support for ELF32
Charles Crayne [Mon, 25 Feb 2008 03:14:17 +0000 (19:14 -0800)]
Dwarf3 support for ELF32

1. Port dwarf3 support from ELF64 to ELF32
2. Move common SAA extentions to nasmlib

16 years agoDwarf support tweeks and clean-up
Charles Crayne [Sun, 24 Feb 2008 02:35:11 +0000 (18:35 -0800)]
Dwarf support tweeks and clean-up

1. Add relocation entries for dwarf sections.
2. Combine common dwarf and stabs routines.

16 years agoNASM 2.02
H. Peter Anvin [Tue, 19 Feb 2008 19:01:08 +0000 (11:01 -0800)]
NASM 2.02

16 years agooutform: make OF_DOS include OF_COFF
H. Peter Anvin [Mon, 18 Feb 2008 02:54:13 +0000 (18:54 -0800)]
outform: make OF_DOS include OF_COFF

DJGPP uses COFF as the file format.  Since DJGPP is widely used in the
(remaining) DOS world, include OF_COFF in OF_DOS.

16 years agoAdd %ifempty and variants
H. Peter Anvin [Sun, 17 Feb 2008 01:01:40 +0000 (17:01 -0800)]
Add %ifempty and variants

16 years agoCHANGES: Document %iftoken
H. Peter Anvin [Sun, 17 Feb 2008 00:46:45 +0000 (16:46 -0800)]
CHANGES: Document %iftoken

16 years agoNASM 2.02rc2
H. Peter Anvin [Sun, 17 Feb 2008 00:44:46 +0000 (16:44 -0800)]
NASM 2.02rc2

16 years agoImplement %iftoken, test for a single token
H. Peter Anvin [Sun, 17 Feb 2008 00:41:25 +0000 (16:41 -0800)]
Implement %iftoken, test for a single token

Implement %iftoken, a test for a single token.  This is useful in
cases using %+ to splice a macro-provided token.

16 years agoOpenWatcom: optimize for 686
H. Peter Anvin [Sat, 16 Feb 2008 23:44:24 +0000 (15:44 -0800)]
OpenWatcom: optimize for 686

Apparently -6 compiles are defined to run on anything 386 or newer,
and just use different instruction timings.

16 years agoSome compilers define __386__ instead of __i386__
H. Peter Anvin [Sat, 16 Feb 2008 23:28:02 +0000 (15:28 -0800)]
Some compilers define __386__ instead of __i386__

OpenWatcom, and possibly other compilers from the DOS universe,
defines __386__ rather than __i386__.

16 years agoClear up WRITE macros causing compile failures with Watcom
H. Peter Anvin [Sat, 16 Feb 2008 23:25:02 +0000 (15:25 -0800)]
Clear up WRITE macros causing compile failures with Watcom

The OpenWatcom compiler warns about invalid shifts (correctly, it
appears) due to the non-X86_MEMORY versions of the various WRITE
macros.  Fix.

16 years agoBring CHANGES hopefully up to date
H. Peter Anvin [Sat, 16 Feb 2008 23:08:41 +0000 (15:08 -0800)]
Bring CHANGES hopefully up to date

16 years agoUse term "host platform" consistently
H. Peter Anvin [Sat, 16 Feb 2008 22:57:45 +0000 (14:57 -0800)]
Use term "host platform" consistently

16 years agoAdd standard time macro boilerplate to __POSIX_TIME__
H. Peter Anvin [Sat, 16 Feb 2008 22:56:49 +0000 (14:56 -0800)]
Add standard time macro boilerplate to __POSIX_TIME__

16 years agoBR 774131: date and time macros
H. Peter Anvin [Sat, 16 Feb 2008 22:54:10 +0000 (14:54 -0800)]
BR 774131: date and time macros

This checkin creates the following date and time macros:

__DATE__, __TIME__, __UTC_DATE__, __UTC_TIME__: strings

__DATE_NUM__, __TIME_NUM__, __UTC_DATE_NUM__, __UTC_TIME_NUM__:
civil dates in digit-string formats

__POSIX_TIME__: time in POSIX time_t format

16 years agoConstipate the stdmac[] array.
H. Peter Anvin [Sat, 16 Feb 2008 21:58:45 +0000 (13:58 -0800)]
Constipate the stdmac[] array.

16 years agoBR 1582430: Allow numbers with leading + or - for %ifnum
H. Peter Anvin [Sat, 16 Feb 2008 21:44:52 +0000 (13:44 -0800)]
BR 1582430: Allow numbers with leading + or - for %ifnum

Allow numbers with a leading + or - to return true for %ifnum.

16 years agoBR 1893952: XGETBV is not privileged.
H. Peter Anvin [Sat, 16 Feb 2008 21:29:56 +0000 (13:29 -0800)]
BR 1893952: XGETBV is not privileged.

16 years agoAdd XSAVE instruction features (CPU feature is bogus, but oh well.)
H. Peter Anvin [Thu, 14 Feb 2008 19:25:14 +0000 (11:25 -0800)]
Add XSAVE instruction features (CPU feature is bogus, but oh well.)

Add the XSAVE group of instructions: XSAVE, XRSTOR, XGETBV, XSETBV.
The CPU feature information is bogus, but so is our entire handling of
CPU feature sets for anything but the bare necessities (long jump
emulation, etc.)

16 years agoUpgrade dwarf3 support for elf64
Charles Crayne [Thu, 14 Feb 2008 03:58:54 +0000 (19:58 -0800)]
Upgrade dwarf3 support for elf64

Add support for multiple executable segments

16 years agoTest version of dwarf debugging format for elf64
Charles Crayne [Thu, 7 Feb 2008 06:17:55 +0000 (22:17 -0800)]
Test version of dwarf debugging format for elf64

Not ready for prime time, but anyone who is interested
is welcome to help me test.

16 years agoMkfiles/README: document the Netware Makefile.
H. Peter Anvin [Wed, 6 Feb 2008 05:35:08 +0000 (21:35 -0800)]
Mkfiles/README: document the Netware Makefile.

16 years agoAdd Makefile for Netware
H. Peter Anvin [Wed, 6 Feb 2008 05:30:16 +0000 (21:30 -0800)]
Add Makefile for Netware

Add Makefile for Netware, using the GNU toolchain.

16 years agoversion.pl: produce Makefile variables
H. Peter Anvin [Wed, 6 Feb 2008 05:29:32 +0000 (21:29 -0800)]
version.pl: produce Makefile variables

Add a mode to version.pl to produce Makefile variables (used by
Netware Makefile.)

16 years agoFix "carryover" of exclude information from one file to another.
H. Peter Anvin [Wed, 6 Feb 2008 05:27:43 +0000 (21:27 -0800)]
Fix "carryover" of exclude information from one file to another.

my %foo; doesn't mean %foo is initialized to empty, need my %foo = ();
or my %foo = undef; or similar for that.

16 years agoNASM 2.02rc1
H. Peter Anvin [Wed, 30 Jan 2008 22:23:43 +0000 (14:23 -0800)]
NASM 2.02rc1

16 years agoAdd list of changes for 2.02, so far
H. Peter Anvin [Wed, 30 Jan 2008 22:22:17 +0000 (14:22 -0800)]
Add list of changes for 2.02, so far

16 years agoTest for BR 1879590
H. Peter Anvin [Wed, 30 Jan 2008 22:13:46 +0000 (14:13 -0800)]
Test for BR 1879590

16 years agoBR 1879590: More MMX/SSE size fixes
Ismail Dönmez [Wed, 30 Jan 2008 22:09:45 +0000 (14:09 -0800)]
BR 1879590: More MMX/SSE size fixes

Fix more instances of MMX/SSE having "SM" instead of "SQ" or "SO".
This should hopefully resolve bug report 1879590.

16 years agoBR 1880905: make sure we have enough zero-padding data for 'DO'
H. Peter Anvin [Mon, 28 Jan 2008 00:39:26 +0000 (16:39 -0800)]
BR 1880905: make sure we have enough zero-padding data for 'DO'

When using DO with a string that was too short, we would run off the
end of an all-zero buffer.  Make sure the buffer is long enough.

16 years agoPrevent segfault in stabs64_typevalue
Charles Crayne [Sun, 27 Jan 2008 20:49:20 +0000 (12:49 -0800)]
Prevent segfault in stabs64_typevalue

Prevent segfault when type == STT_OBJECT and no symbol
has been defined.

16 years agofloat.c: BR 1879670: fix output byte order
H. Peter Anvin [Fri, 25 Jan 2008 16:11:23 +0000 (08:11 -0800)]
float.c: BR 1879670: fix output byte order

The fix for the memory overwrite output the bytes in the wrong order.
Fix.

16 years agoIgnore ERR_PASS1 except for actual warnings
H. Peter Anvin [Tue, 22 Jan 2008 22:08:36 +0000 (14:08 -0800)]
Ignore ERR_PASS1 except for actual warnings

is_suppressed_warning() should never return true unless we're actually
dealing with a warning.  There is a handful of cases where we pass
ERR_PASS1 down together with errors, but that's mostly because it fits
into an overall pattern.  Thus, ignore it.

16 years agoRAA subsystem: use shift instead of divide
H. Peter Anvin [Tue, 22 Jan 2008 00:33:00 +0000 (16:33 -0800)]
RAA subsystem: use shift instead of divide

Make the RAA size always a power of two, so we can use shifts instead
of multiple, expensive divides.

16 years agopreproc.c: simplify detoken() slightly
H. Peter Anvin [Tue, 22 Jan 2008 00:31:57 +0000 (16:31 -0800)]
preproc.c: simplify detoken() slightly

Probably pointless optimization of detoken()...

16 years agonasmlib.c: log nasm_free() before calling free()
H. Peter Anvin [Tue, 22 Jan 2008 00:29:10 +0000 (16:29 -0800)]
nasmlib.c: log nasm_free() before calling free()

If we're logging nasm_free(), then log it before we actually call
free(); that way we can find out what the last thing was if free()
crashes.

16 years agonasmlib.h: nasm_zalloc() should call nasm_zalloc_log()
H. Peter Anvin [Tue, 22 Jan 2008 00:28:04 +0000 (16:28 -0800)]
nasmlib.h: nasm_zalloc() should call nasm_zalloc_log()

If we're doing logging, we need to call nasm_zalloc_log()

16 years agomisc/findleak.pl: make executable
H. Peter Anvin [Tue, 22 Jan 2008 00:26:32 +0000 (16:26 -0800)]
misc/findleak.pl: make executable

misc/findleak.pl: no text change, but mark file executable.

16 years agonasm.h: make t_type an enum
H. Peter Anvin [Tue, 22 Jan 2008 00:26:05 +0000 (16:26 -0800)]
nasm.h: make t_type an enum

Make t_type an enum to make debugging easier.

16 years agonasm.c: clean up the handing of response files
H. Peter Anvin [Tue, 22 Jan 2008 00:23:59 +0000 (16:23 -0800)]
nasm.c: clean up the handing of response files

Avoid using malloc/free (not nasm_malloc/nasm_free even) in the
processing of response files; move to separate function.

16 years agofloat.c: fix memory overwrite with 8-, 16- or 80-bit constants
H. Peter Anvin [Tue, 22 Jan 2008 00:19:52 +0000 (16:19 -0800)]
float.c: fix memory overwrite with 8-, 16- or 80-bit constants

We incorrectly clobbered 4 extra bytes when serializing 8-, 16- or
80-bit constants.  Be less smart, but actually correct.

16 years agoOpenWatcom makefiles: add DEBUG option
H. Peter Anvin [Tue, 22 Jan 2008 00:18:44 +0000 (16:18 -0800)]
OpenWatcom makefiles: add DEBUG option

Add a Makefile variable, DEBUG, which can be used to set debug options
(-d2, -DLOGALLOC, etc.)

16 years agoFix the options when compiling under OpenWatcom
H. Peter Anvin [Mon, 21 Jan 2008 19:50:31 +0000 (11:50 -0800)]
Fix the options when compiling under OpenWatcom

OpenWatcom needs different strings for compile and link target, so
using -bcl which uses the same string for both is just plain wrong.
This fixes that bit, but running nasm on test/floatx.asm (at least as
a DOS or a Win32 binary) crashes with a NULL pointer reference inside
the C library free() function.

16 years agodoc/Makefile.in: avoid deleting opt_var.txt, fix dependencies
H. Peter Anvin [Mon, 21 Jan 2008 05:50:02 +0000 (21:50 -0800)]
doc/Makefile.in: avoid deleting opt_var.txt, fix dependencies

Fix dependencies in the generation of the instruction list, and make
sure we don't delete opt_var.txt on "make spotless".

16 years agoAdd autogenerated instruction list to NASM documentation
Charles Crayne [Mon, 21 Jan 2008 00:27:03 +0000 (16:27 -0800)]
Add autogenerated instruction list to NASM documentation

1. Allow included files in rdsrc.pl
2. New program inslist.pl to generate instruction list from insns.dat
3. Mark certain comments in insns.dat as documentation subheaders
4. Add Instruction List appendix to nasmdoc.src
5. Update build process to invoke inslist.pl

16 years agoNASM 2.01
H. Peter Anvin [Thu, 17 Jan 2008 20:12:05 +0000 (15:12 -0500)]
NASM 2.01

16 years agoDocument change in ELF section limit
H. Peter Anvin [Thu, 17 Jan 2008 20:11:46 +0000 (15:11 -0500)]
Document change in ELF section limit

16 years agoMerge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm
Charles Crayne [Thu, 17 Jan 2008 02:41:03 +0000 (18:41 -0800)]
Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm

16 years agoIncrease GLOBAL_TEMP_BASE
Charles Crayne [Thu, 17 Jan 2008 02:38:48 +0000 (18:38 -0800)]
Increase GLOBAL_TEMP_BASE

Increase GLOBAL_TEMP_BASE from 4096 to 1048576

16 years agoRemove debugging printf
H. Peter Anvin [Sun, 13 Jan 2008 19:46:04 +0000 (11:46 -0800)]
Remove debugging printf

Remove debugging printf which shouldn't ever have been checked in ;)

16 years agoTemporary fix for large number of sections
Charles Crayne [Sat, 12 Jan 2008 01:22:19 +0000 (17:22 -0800)]
Temporary fix for large number of sections

Increase GLOBAL_TEMP_BASE TO 4096

16 years agoNASM 2.01rc2
H. Peter Anvin [Wed, 9 Jan 2008 07:07:50 +0000 (23:07 -0800)]
NASM 2.01rc2

16 years agoSanitize the pass logic, and only issue PASS1 warnings on pass0 == 1
H. Peter Anvin [Wed, 9 Jan 2008 07:03:57 +0000 (23:03 -0800)]
Sanitize the pass logic, and only issue PASS1 warnings on pass0 == 1

For PASS1 warnings, only do them when pass0 == 1.  The prior passes
are to be considered training passes.  This is a bit awkward if we
then hit an error, but it's better than n repeated warnings.

16 years agoRemove magic "five pass minimum" - I'm pretty sure optimizer is fixed.
H. Peter Anvin [Wed, 9 Jan 2008 06:31:20 +0000 (22:31 -0800)]
Remove magic "five pass minimum" - I'm pretty sure optimizer is fixed.

The five-pass-minimum was a hack for a bug which I think is identified
now.  Doesn't really change the fact that if you want the optimizer,
you probably want -Ox.

16 years agoOptimizer: force progression through final passes when hitting limit
H. Peter Anvin [Wed, 9 Jan 2008 06:29:21 +0000 (22:29 -0800)]
Optimizer: force progression through final passes when hitting limit

We have a number of bug reports about things not working properly when
the optimizer is running out of passes.  I suspect the reason is
simply that we don't properly execute the final passes (pass0 = 1, 2)
when hitting the limit.  Make sure we advance pass0 the last few
times.

16 years agoBR 1864243: better warnings for out-of-range constants
H. Peter Anvin [Wed, 9 Jan 2008 06:13:48 +0000 (22:13 -0800)]
BR 1864243: better warnings for out-of-range constants

In particular, we'd miss issuing warnings for out-of-range dword
values, and the message for constants too large (we can't deal with >
64 bits) said 32 bits, not 64.

16 years agodisasm: relative operands are signed, not unsigned
H. Peter Anvin [Wed, 2 Jan 2008 20:19:41 +0000 (12:19 -0800)]
disasm: relative operands are signed, not unsigned

Relative operands are signed, not unsigned; record them as such and
then apply proper truncation after offset addition.

16 years agoDefine MKDIR for rdoff make file
Charles Crayne [Sun, 30 Dec 2007 22:24:10 +0000 (14:24 -0800)]
Define MKDIR for rdoff make file

Addition of rdoff man pages uses MKDIR, which was not defined

16 years agoregularized spelling of license to match name of LICENSE file
Beroset [Sat, 29 Dec 2007 14:44:23 +0000 (09:44 -0500)]
regularized spelling of license to match name of LICENSE file

16 years agoCheck in Ed Beroset's documentation fix
Charles Crayne [Fri, 28 Dec 2007 23:00:03 +0000 (15:00 -0800)]
Check in Ed Beroset's documentation fix

Correct count in %strlen example

16 years agodisasm: 32-bit index registers were displayed as 64 bits
H. Peter Anvin [Thu, 27 Dec 2007 03:10:20 +0000 (19:10 -0800)]
disasm: 32-bit index registers were displayed as 64 bits

Fix bug where 32-bit index registers got incorrectly displayed as 64
bits:

00000000  678B040B          mov eax,[ebx+rcx]
00000004  678B044B          mov eax,[ebx+rcx*2]
00000008  678B045B          mov eax,[ebx+rbx*2]

16 years agoMore changes for 2.01
H. Peter Anvin [Wed, 26 Dec 2007 18:18:49 +0000 (10:18 -0800)]
More changes for 2.01

16 years agospecfile: correctly handle compressed manpages
H. Peter Anvin [Wed, 26 Dec 2007 18:18:01 +0000 (10:18 -0800)]
specfile: correctly handle compressed manpages

16 years agoNASM 2.01rc1
H. Peter Anvin [Tue, 25 Dec 2007 23:38:41 +0000 (15:38 -0800)]
NASM 2.01rc1

16 years agoDocument "-f elf" fix.
H. Peter Anvin [Tue, 25 Dec 2007 23:38:22 +0000 (15:38 -0800)]
Document "-f elf" fix.

16 years agoUpdate CHANGES for an upcoming 2.01 release.
H. Peter Anvin [Tue, 25 Dec 2007 23:31:27 +0000 (15:31 -0800)]
Update CHANGES for an upcoming 2.01 release.

16 years agoRemove bogus duplicates of the PREFETCH* instructions
H. Peter Anvin [Tue, 25 Dec 2007 23:07:39 +0000 (15:07 -0800)]
Remove bogus duplicates of the PREFETCH* instructions

16 years ago(Hopefully) fix the handing of MMX instructions with prefixes
H. Peter Anvin [Tue, 25 Dec 2007 23:18:12 +0000 (15:18 -0800)]
(Hopefully) fix the handing of MMX instructions with prefixes

Mark MMX instructions with \323 (do not add REX.W) unless they involve
the integer instruction file.

Change SM -> SQ for MMX instructions.

Something not complete attached, so my understanding is
mmxreg,mmxrm needs SQ

Something like xmmreg,reg32 needs SD
xmmreg,xmmrm needs SO

16 years agondisasm: handle instructions at offset zero
H. Peter Anvin [Thu, 20 Dec 2007 20:24:17 +0000 (12:24 -0800)]
ndisasm: handle instructions at offset zero

Correctly handle instructions at offset zero

16 years agoAdd RDOFF man pages to specfile.
H. Peter Anvin [Wed, 19 Dec 2007 00:13:47 +0000 (16:13 -0800)]
Add RDOFF man pages to specfile.

16 years agordoff: add man pages from the Debian project.
H. Peter Anvin [Wed, 19 Dec 2007 00:12:13 +0000 (16:12 -0800)]
rdoff: add man pages from the Debian project.

Add man pages for some of the rdoff programs, from the Debian project.

16 years agoComplete the altreg set with "r0h".."r3h".
H. Peter Anvin [Mon, 10 Dec 2007 23:36:39 +0000 (15:36 -0800)]
Complete the altreg set with "r0h".."r3h".

16 years agoMerge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm
H. Peter Anvin [Mon, 10 Dec 2007 23:35:50 +0000 (15:35 -0800)]
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm

16 years agoDocument naming of registers in 64-bit mode
H. Peter Anvin [Mon, 10 Dec 2007 23:35:28 +0000 (15:35 -0800)]
Document naming of registers in 64-bit mode

Intel's docs diverge from AMD's docs (MASM follow AMD's docs);
formally document what we're doing and include a file of macros in
case someone wants to use alternate names.

16 years agoFix elf vs elf32 stabs generation bug
Charles Crayne [Sat, 1 Dec 2007 00:23:56 +0000 (16:23 -0800)]
Fix elf vs elf32 stabs generation bug

When invoked as -f elf -g, stabs info was not being generated.

16 years agoRefer to version 2.00 consistently as 2.00 not 2.0
H. Peter Anvin [Fri, 30 Nov 2007 01:30:11 +0000 (17:30 -0800)]
Refer to version 2.00 consistently as 2.00 not 2.0

16 years agodoc: 16- and 128-bit floating point were also new for 2.0
H. Peter Anvin [Fri, 30 Nov 2007 01:29:37 +0000 (17:29 -0800)]
doc: 16- and 128-bit floating point were also new for 2.0

16 years agoUpdate install instructions; remove references to nasmw.exe
H. Peter Anvin [Fri, 30 Nov 2007 01:28:05 +0000 (17:28 -0800)]
Update install instructions; remove references to nasmw.exe

16 years agodoc: s/NASM/nasm/ in invocation example
H. Peter Anvin [Fri, 30 Nov 2007 01:20:45 +0000 (17:20 -0800)]
doc: s/NASM/nasm/ in invocation example

On case-sensitive systems, "NASM" doesn't work.

16 years ago-o is output filename, not output format
H. Peter Anvin [Fri, 30 Nov 2007 01:19:49 +0000 (17:19 -0800)]
-o is output filename, not output format