Matrix in assembly 8086

Discussion in 'Homework Help' started by juci, Dec 16, 2011.

  1. juci

    Thread Starter New Member

    Dec 16, 2011
    Matrix given in memory to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the middle)

    I'm new here, I have to write code for the task above in assembly,could someone help me and explain me how to solve this task? Please

    here is an example
    the matrix
    1 2 3
    4 5 6
    7 8 9

    and the result is 1, 4, 7, 8, 9, 6, 3, 2 5

    It is very important for me to solve the problem, tnx
  2. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    Do you know assembly?

    Could you solve the task in C (or any other language you know)? I guess my question is, do you know how to do it, but don't know how to write it in assembly?

    Draw a flow chart for how the program should work, flow charts are language independent. Label the 3x3 matrix as data and maybe assign letters to each position to make it a bit less confusing.

    Then work from there, post your flow chart, or where you get stuck on it, and hopefully one of us can help. I have finally managed to forget x86 assembly, but understand you need to know it for the class. :)