flat assembler
Message board for the users of flat assembler.

Index > Main > pointer or what?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 31 Dec 2004, 10:47
Code:
invoke MessageBox, 0, state, state, MB_OK
    


Use code tags for code you post... there are buttons in the post screen...
Post 31 Dec 2004, 10:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
gumletis



Joined: 18 Dec 2004
Posts: 128
gumletis 31 Dec 2004, 11:46
?? don't get that, ps i wanna do the api with eax register, or some other register, its the problem, it wont let me do it, just crashh
Post 31 Dec 2004, 11:46
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 31 Dec 2004, 12:14
gumletis wrote:
?? don't get that, ps i wanna do the api with eax register, or some other register, its the problem, it wont let me do it, just crashh


Variant 1:
Code:
mov  eax, state
invoke MessageBox, 0, eax, eax, MB_OK 
    


Variant 2:
Code:
lea  eax, [state]
invoke MessageBox, 0, eax, eax, MB_OK 
    


Listen, do you really understant what is register and what is memory and what are the base assembly concepts?
If no, please find some beginers tutorials and read them.
Vid's tutorial is pretty fine for beginers and it is written for FASM syntax.
You can find it here: http://decard.net/?body=docs

You must understand some fundamental things before working with API.

Regards.
Post 31 Dec 2004, 12:14
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
gumletis



Joined: 18 Dec 2004
Posts: 128
gumletis 31 Dec 2004, 12:16
okay, thanks, i will look at that
Post 31 Dec 2004, 12:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.