Why cant i do like this?

mov pa.hwnd,hWnd

pa is a structure and pa.hwnd is declared as

hwnd HWND ?
Posted on 2004-01-03 13:16:48 by bj1500
You can't do two indirect accesses with the x86 instruction set - there's no "mov ," addressing mode. Thus, you'll have to either mov the hwnd to a register first, or do (slower + two bytes longer) push/pop combination.
Posted on 2004-01-03 13:46:19 by f0dder
Unlike better architectures like the Motorola 68000 series, Intel CPU's are not able to do direct memory to memory transfers, except for the PUSH/POP and MOVS instructions. Intel is also woefully short on general registers too. Ratch
Posted on 2004-01-03 22:16:35 by Ratch