News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

FISTTP—Store Integer with Truncation

Started by aw27, July 22, 2017, 05:41:54 PM

Previous topic - Next topic

aw27

Using this "new" x87 instruction gives the error:
"Error A2030: Instruction or register not accepted in current CPU mode".

I tried all CPU modes.

It works fine with Masm.

jj2007

Which UASM version doesn't work?

include \masm32\include\masm32rt.inc
.686
.xmm

.code
start:
  fldpi
  push eax
  FISTTP dword ptr [esp]
  pop ecx

  MsgBox 0, cat$(str$(ecx), " is the result"), "fisttp:", MB_OK
  exit

end start

aw27

This way does not:
fisttp dword ptr storedDword


jj2007

For me, fisttp dword ptr storedDword works like a charm. Can you post a complete example?

aw27

You are right.
It works with
.686
.xmm

It does not work with
.xmm
.686

Thanks.

But it works with Masm. So probably I reported the wrong issue.  :lol:


jj2007

It's not a bug but a little incompatibility. I guess the team will fix it in a day or two. Microxxxx needs a decade or two...

aw27

Quote from: jj2007 on July 22, 2017, 07:47:26 PM
It's not a bug but a little incompatibility. I guess the team will fix it in a day or two. Microxxxx needs a decade or two...
For me there is no need to fix the incompatibility, I have repeated 10 times "First .686, second .xmm". I will never forget it :P

hutch--

 :biggrin:

Now you understand why MASM does not have bugs, only features that you need to understand. Thank God for ML64.

.code
  ; everything inbetween
end

:P