Set one more bit for @Cpu when in .x64
Brought to you by:
japheth
I'm not sure if this is feature request or not-implemented bug...
Currently .x64 and .686 return the same value for @Cpu
.686
.radix 2
%echo @CatStr(%(@Cpu))
.radix 10
.x64
.radix 2
%echo @CatStr(%(@Cpu))
.radix 10
:::::::::::::::::::::::::
110101011111
110101011111
The problem is that ML64 doesn't understand the @Cpu equate anymore. OTOH, the expression "TYPE NEAR" will be accepted by both jwasm and ml64 - it returns 0FF08h in 64-bit code:
if type near eq 0ff08h
do 64-bit stuff
else
do 32-bit stuff
endif
I admit it looks a bit weird, but IMO is still preferable.