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

What Assembler? In MASM

MyInt           DWORD   3
MyIntPointer    DWORD MyInt
mov      eax, MyIntPointer
   mov      eax, [eax]
   PrintDec eax
Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.