flat assembler
Message board for the users of flat assembler.
Index
> Main > need help with ARRAY |
Author |
|
gunblade 26 Jan 2005, 21:11
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 |
|||
26 Jan 2005, 21:11 |
|
beppe85 26 Jan 2005, 23:58
gunblade wrote: you can access each row and colomn through addition and multiplication of the offset. So easy eh? I devised some macros, one for data definition and three for access. Just for fun, but it wasn't very amusing.
_________________ "I assemble, therefore I am" If you got some spare time, visit my blog: http://www.beppe.theblog.com.br/ and sign my guestmap |
|||||||||||
26 Jan 2005, 23:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.