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
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
push hInstance
pop wc.hInstance
You can do this:
mov eax,hInstance
mov wc.hInstance, eax
pop wc.hInstance
You can do this:
mov eax,hInstance
mov wc.hInstance, eax
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.