The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: Vortex on November 13, 2016, 09:54:23 PM

Title: invalid combination of opcode and operands
Post by: Vortex 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 :

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
Title: Re: invalid combination of opcode and operands
Post by: jj2007 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?
Title: Re: invalid combination of opcode and operands
Post by: Vortex 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
Title: Re: invalid combination of opcode and operands
Post by: habran 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:
Title: Re: invalid combination of opcode and operands
Post by: Vortex on November 15, 2016, 05:29:15 AM
Hi habran,

No problem. Keep up the good work :t