flat assembler
Message board for the users of flat assembler.
Index
> Windows > How can I produce variables? |
What is best Assembler? | |||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Total Votes : 9 |
Author |
|
ronware 29 Jan 2004, 20:20
ProgrammierenMV wrote: As a kind of newbie in Assembler, I searched for tutorials. I only found two of them, but nothing was said about how to declare or define variables. All a variable is, is a memory location where you store data. So assuming you want to store a DWORD (4 byte value), you would have: my_variable dd 0 (or similar) somewhere in your data segment (or code segment if that is writeable in your application). Then to load it into EAX, for example, mov eax, [my_variable] Do something: inc eax mov [my_variable], eax ; save it |
|||
29 Jan 2004, 20:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.