News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

algorithms based on matrices

Started by dn5a, February 07, 2006, 11:31:56 PM

Previous topic - Next topic

dn5a

Hello,
I just have a quick question:
how can we define a matrix in .data
and can anyone show me some examples or pass some
good links on that?
In other words
I'd like to do some basic arithmetic operation on matrices
in masm which later will turn into high level algorithms :) Of course if
everything will go the way I think of it.
You may put entries in an array like:
array1 DWORD 1,2,3,4,5,6,7,8,9
but it's just an array, basic set of numbers,
I tried
array DWORD ((1,2,3),(4,5,6),(7,8,9))
however it does not work that way
Please help me guys :)
and Like it says above, can anyone show me some good
examples of dealing with matrix-based algorithms in masm?
Thanks!

EduardoS

When you program in assembly there isn't any abstraction, every data is stored as a 1 dimensional array, to get the element 1, 2 (zero based) of a matrix with 3 coluns you get the 1*3+2 element, a DWORD take 4 bytes, so the 1*3+2 element is located (1*3+2)*4 bytes from the start of your matrix.