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