NO

Author Topic: FLD error  (Read 3368 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
FLD error
« on: November 01, 2010, 10:38:12 AM »
Is this correct ???
Code: [Select]
.386
.MODEL FLAT
.CODE

test_fld PROC
return_f32:
  fld dword ptr [edx]
  ret

return_f64:
  fld qword ptr [edx]
  ret
test_fld ENDP
END

test.asm(7): error: Invalid combination of opcode and operands (or wrong CPU setting).
test.asm(11): error: Invalid combination of opcode and operands (or wrong CPU setting).

May the source be with you

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: FLD error
« Reply #1 on: November 04, 2010, 05:34:18 PM »
almost... add .387 directive...
/Pelle