This is probably an easy thing to do but I don't know how.
How can I declare in the .data section one pointer to an integer?

Recommended Answers

All 2 Replies

What Assembler? In MASM

MyInt           DWORD   3
MyIntPointer    DWORD MyInt
mov      eax, MyIntPointer
   mov      eax, [eax]
   PrintDec eax

No I wanted to know how to do it using the GNU assembler for Intel >.<

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.