svn commit: r1657 - in trunk/yasm: libyasm

peter at tortall.net peter at tortall.net
Wed Oct 18 20:21:19 PDT 2006


Author: peter
Date: Wed Oct 18 20:21:18 2006
New Revision: 1657

Added:
   trunk/yasm/modules/preprocs/nasm/tests/nasmpp-decimal.asm
   trunk/yasm/modules/preprocs/nasm/tests/nasmpp-decimal.hex
Modified:
   trunk/yasm/libyasm/intnum.c
   trunk/yasm/modules/preprocs/nasm/tests/Makefile.inc
   trunk/yasm/modules/preprocs/nasm/tests/nasmpp-nested.errwarn
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1657

Log:
Fix #84: I broke the idiom of concating a decimal number to a register
in the preproc (e.g mm%$x -> mm0) when I implemented a minor optimization
(outputing values in hex to avoid the 2x decimal conversion overhead) in
[1488].  Revert that optimization.

I believe the right way to do this is to add the GAS (and MASM) syntax
sugar of mm(0) etc. to NASM syntax, then any number (not just decimal)
can be used as the new idiom for doing this.  But that wouldn't unbreak
programs that already exist, so we're left with this state of affairs.
Sigh.



More information about the yasm-cvs mailing list