| View previous topic :: View next topic |
| Author |
Message |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jun 17, 2007 7:16 pm Post subject: [mASM]Assembling... misunderstanding. |
|
|
This is no big deal since I can fix it in Olly... but this is what bothers me.
| Code: | | mov eax, offset [hinst] |
Something like that... I tried many combinations but whatever I do it will not compile with brackets around this mem_var.
_________________
Last edited by sponge on Sun Jun 17, 2007 7:39 pm; edited 1 time in total |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sun Jun 17, 2007 7:31 pm Post subject: |
|
|
that makes no sense. 'offset' means address at, and [] means to dereference, they cancel each other out!
p.s, masm isn't "compiling" its "assembling"
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jun 17, 2007 7:34 pm Post subject: |
|
|
bleh... last time i tried removing offset... all it did was have an assembly error about incorrect syntax. but i'll try it again... most of the time i do this when im extremely bored ... thats usually past midnight and when my memory fails.
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sun Jun 17, 2007 7:35 pm Post subject: |
|
|
| mov eax, [hinst] is what you want to do?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jun 17, 2007 7:37 pm Post subject: |
|
|
nvm... i didn't think that size would really matter... just forgot to put dword ptr... my mistake. anyways thanks for helping.
_________________
|
|
| Back to top |
|
 |
|