Find the answer to your Linux question:
Results 1 to 2 of 2
Greetings, I have no clue how to call matrices and use them in MIPS. I can declare them as so... A0: .word 1, 1, -1, 3 A1: .word 20, 10, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    At a rock house in Oak Cliff...
    Posts
    87

    Matrices in MIPS


    Greetings,
    I have no clue how to call matrices and use them in MIPS. I can declare them as so...

    A0: .word 1, 1, -1, 3
    A1: .word 20, 10, -40, 30
    A2: .word 5, -1, 40, 30
    A3: .word 70, 3, 8, -5
    A: .word A0, A1, A2, A3

    But as far as calling on A(i,j) I am as you say stumped. Any help would be most appreciated.

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    Its been a long time since I programmed in MIPS, but from memory, You had to load the base address of the array into a register and then increment by 4 to point to the next element.
    Life is complex, it has a real part and an imaginary part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •