flat assembler
Message board for the users of flat assembler.

Index > Main > need help with ARRAY

Author
Thread Post new topic Reply to topic
rui15dias



Joined: 03 Dec 2004
Posts: 3
Location: Portugal
rui15dias
I would like to know how can i acess to a element of a multidimensional array??? In all the aspects (read value, insert new value, etc)

PLEASE HELP!!!

Thanks!...
Post 26 Jan 2005, 18:20
View user's profile Send private message Reply with quote
gunblade



Joined: 19 Feb 2004
Posts: 209
gunblade
hey rui,
where did this array come from.. C/C++? or are you wanting to make it yourself?
afaik, multi dimentional arrays are just the same as linear arrays..

say you had a 3x3 array of bytes (char or similar in C)
then you can access each row and colomn through addition and multiplication of the offset.

I would give an example, but i dont know exactly what your trying to do..

if your trying to access an array from another program (a library or something, coded in C), then just give the definition of that array (eg: int C_array[25][34]).

gunblade
Post 26 Jan 2005, 21:11
View user's profile Send private message Reply with quote
beppe85



Joined: 23 Oct 2004
Posts: 181
beppe85
gunblade wrote:
you can access each row and colomn through addition and multiplication of the offset.

So easy eh? Laughing

I devised some macros, one for data definition and three for access. Just for fun, but it wasn't very amusing. Evil or Very Mad


Description: Example of use
Download
Filename: mda.ASM
Filesize: 2.06 KB
Downloaded: 248 Time(s)


_________________
"I assemble, therefore I am"

If you got some spare time, visit my blog: http://www.beppe.theblog.com.br/ and sign my guestmap
Post 26 Jan 2005, 23:58
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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.