Hi, I was wondering, why is it that some values can be mov'd into others:

mov val1, val2

While other have to be push'd onto the stack and then pop'd into somewhere else:

push hInstance
pop wc.hInstance
Posted on 2002-05-02 16:14:31 by Ronin Magus
push hInstance
pop wc.hInstance

You can do this:

mov eax,hInstance
mov wc.hInstance, eax
Posted on 2002-05-02 16:23:56 by CodeLover
Under the masm dir is another dir called "help". In that dir you'll find "opcodes.hlp". If you look up the "mov" instruction you'll see all of the possible allowed mov's. My guess is that you're trying to do a mem to mem mov. You can do a reg to reg mov, a reg to mem mov, or a mem to reg mov. But you can't do a direct mem to mem mov.
Posted on 2002-05-02 16:43:18 by Will