Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[mASM]Assembling... misunderstanding.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jun 17, 2007 7:16 pm    Post subject: [mASM]Assembling... misunderstanding. Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Jun 17, 2007 7:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jun 17, 2007 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Jun 17, 2007 7:35 pm    Post subject: Reply with quote

mov eax, [hinst] is what you want to do?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jun 17, 2007 7:37 pm    Post subject: Reply with quote

nvm... i didn't think that size would really matter... just forgot to put dword ptr... my mistake. anyways thanks for helping. Razz
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites