flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > making app in fasm

Author
Thread Post new topic Reply to topic
profkid13



Joined: 21 Aug 2003
Posts: 111
profkid13 20 Nov 2004, 12:07
hi, i'm making an app in fasm but i have some questions..

i should have a variable/string or whatever they call it to save the x pos of an image in, when left key is pushed the number should get smaller etc..
how do i set such an variable and how do i change it ?
Post 20 Nov 2004, 12:07
View user's profile Send private message Reply with quote
profkid13



Joined: 21 Aug 2003
Posts: 111
profkid13 22 Nov 2004, 19:48
nvm, thanx anyway Rolling Eyes Confused
Post 22 Nov 2004, 19:48
View user's profile Send private message Reply with quote
SPTH



Joined: 24 Jul 2004
Posts: 91
SPTH 22 Nov 2004, 22:04
I really dont understand what you mean, and that's maybe also why nobody answered you.

what exactly do you need?

what i understand is define a variable
Code:
var dd 0x0 ; 4 bytes
str db 'String',0x0 ; String with certain length
    


and change the var:

Code:
dec dword [var]
    


but that's too easy, dont think you mean that...
Post 22 Nov 2004, 22:04
View user's profile Send private message Reply with quote
profkid13



Joined: 21 Aug 2003
Posts: 111
profkid13 23 Nov 2004, 20:35
hmm, srry for the unclear explenation...

lets give an example:

you're making a shooting game and you want to add 5 point to the score when you shot someone.

then you want to print the variable to the screen..

(i'm very newbie to assembler Wink , do you know of any good ebooks?)
Post 23 Nov 2004, 20:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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 can 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.