Pelles C forum

Assembly language => Assembly discussions => Topic started by: TimoVJL on November 01, 2010, 10:38:12 AM

Title: FLD error
Post by: TimoVJL 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).

Title: Re: FLD error
Post by: Pelle on November 04, 2010, 05:34:18 PM
almost... add .387 directive...