]> granicus.if.org Git - yasm/commit
Fix #84: I broke the idiom of concating a decimal number to a register
authorPeter Johnson <peter@tortall.net>
Thu, 19 Oct 2006 03:21:18 +0000 (03:21 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 19 Oct 2006 03:21:18 +0000 (03:21 -0000)
commit258604ef1e86700d19bfd104c0bdec8d0b66527a
tree93a21912cfbdf3f651fa7e8bc398900a242dfb8c
parent9d5e81b920c59ed9e050baf837b9d526eefbb446
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.

svn path=/trunk/yasm/; revision=1657
libyasm/intnum.c
modules/preprocs/nasm/tests/Makefile.inc
modules/preprocs/nasm/tests/nasmpp-decimal.asm [new file with mode: 0644]
modules/preprocs/nasm/tests/nasmpp-decimal.hex [new file with mode: 0644]
modules/preprocs/nasm/tests/nasmpp-nested.errwarn