The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: stanley on September 16, 2009, 11:06:51 PM

Title: Define these instructions
Post by: stanley on September 16, 2009, 11:06:51 PM
hello to every one !! I am beginner in Assembly language. Could please explain the instructions given below.

1) push  hInstance
    pop   wc.hInstance

2)what is the difference between  this two mov operation given below:

mov  wc.hIconSm,eax

mov   eax,msg.wParam


Title: Re: Define these instructions
Post by: NightWare on September 16, 2009, 11:35:24 PM
push hInstance ; mov the value pointed by hInstance ID, to the stack

pop  wc.hInstance ; mov the top value from the stack at the location pointed by wc.hInstance ID, a structure here, (OFFSET wc + hInstance displacement, corresponding to the element of the structure)

for the others it's similar, but passing by a register instead of the stack.
Title: Re: Define these instructions
Post by: stanley on September 16, 2009, 11:49:25 PM
Thank you :-)