flat assembler
Message board for the users of flat assembler.

Index > Main > How to get address of variable in data section?

Author
Thread Post new topic Reply to topic
DSblizzard



Joined: 23 Oct 2019
Posts: 15
Location: Ryazan, Russia
DSblizzard
In following code:
Code:
section '.data' data readable writeable
        pairs dq 1000*2 dup(0)
        pair_ptr dq pairs
    

pair_ptr is second big array. How to change code that it would contain address of "pairs" array?
Post 23 Oct 2019, 16:00
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17099
Location: In your JS exploiting you and your system
revolution
I don't understand your question.

Your "pair_ptr" already has the address of "pairs". So it looks like you don't need to change anything.
Post 24 Oct 2019, 07:38
View user's profile Send private message Visit poster's website Reply with quote
DSblizzard



Joined: 23 Oct 2019
Posts: 15
Location: Ryazan, Russia
DSblizzard
Sorry, I somehow overlooked that it is correct code.
Post 24 Oct 2019, 12:48
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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.