The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
March 23, 2023, 07:53:43 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Campus
| | |-+  Define these instructions
« previous next »
Pages: [1] Print
Author Topic: Define these instructions  (Read 2622 times)
stanley
Guest


Email
Define these instructions
« 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


Logged
NightWare
Member
*****
Gender: Male
Posts: 416


when dream comes true


Re: Define these instructions
« Reply #1 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.
Logged
stanley
Guest


Email
Re: Define these instructions
« Reply #2 on: September 16, 2009, 11:49:25 PM »

Thank you :-)
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!