Author Topic: invalid combination of opcode and operands  (Read 3338 times)

Vortex

  • Member
  • *****
  • Posts: 2332
invalid combination of opcode and operands
« on: November 13, 2016, 09:54:23 PM »
Hello habran and johnsa,

I am working on a macro to extend the capabilities of the built-in invoke macro. ml.exe assembles my code without any error message. HJWasm 2.16 reports the following messages :

Code: [Select]
Window.asm(84) : Error A2014: invalid combination of opcode and operands
Window.asm(84) : Error A2014: invalid combination of opcode and operands
Window.asm(89) : Error A2014: invalid combination of opcode and operands
Window.asm(89) : Error A2014: invalid combination of opcode and operands
Window.asm: 93 lines, 1 passes, 109 ms, 0 warnings, 4 errors

HJWasm complains about the ret instructions. Could you point me in the right direction? Thanks.

Code: [Select]
WndProc PROC hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM

    .IF uMsg==WM_DESTROY
        _invoke PostQuitMessage,NULL

    .ELSE
        _invoke DefWindowProc,hWnd,uMsg,wParam,lParam
        ret

    .ENDIF
   
    xor eax,eax
    ret

WndProc ENDP

jj2007

  • Member
  • *****
  • Posts: 10543
  • Assembler is fun ;-)
    • MasmBasic
Re: invalid combination of opcode and operands
« Reply #1 on: November 14, 2016, 04:26:43 AM »
Note that was the same cryptic error message which I got with the latest HJWasm when building my MasmBasic source. They fixed it a day or two ago. When did you install your 2.16 version?

Vortex

  • Member
  • *****
  • Posts: 2332
Re: invalid combination of opcode and operands
« Reply #2 on: November 14, 2016, 05:25:48 AM »
Hi Jochen,

My HJWasm version 2.16 dated November 9. I downloaded a new copy dating November 13 from Terraspace and this new release fixed the problem. Thanks for your help :t

habran

  • Member
  • *****
  • Posts: 1225
    • uasm
Re: invalid combination of opcode and operands
« Reply #3 on: November 14, 2016, 06:04:38 PM »
Thanks  Jochen :t
Hi Wortex,
We are fixing bits and peaces on AVX2 and EVEX instructions lately, so we will often update releases until we've got everything right.
We apologise for inconvenience  :biggrin:
Cod-Father

Vortex

  • Member
  • *****
  • Posts: 2332
Re: invalid combination of opcode and operands
« Reply #4 on: November 15, 2016, 05:29:15 AM »
Hi habran,

No problem. Keep up the good work :t