Menu

#30 Set one more bit for @Cpu when in .x64

open
nobody
None
5
2011-06-28
2011-04-17
drizz
No

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

Discussion

  • japheth

    japheth - 2011-04-19

    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.

     
  • japheth

    japheth - 2011-06-28
    • priority: 5 --> 1
     
  • japheth

    japheth - 2011-06-28
    • priority: 1 --> 5
     

Log in to post a comment.