News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

invalid combination of opcode and operands

Started by Vortex, November 13, 2016, 09:54:23 PM

Previous topic - Next topic

Vortex

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 :

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.

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

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

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

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

Hi habran,

No problem. Keep up the good work :t