Question about Marie assembler

Discussion in 'Homework Help' started by cozmo, Mar 16, 2009.

  1. cozmo

    Thread Starter New Member

    Mar 16, 2009
    2
    0
    I am tryin to solve the same problem. would you pu the numbers in decending order and then take the first number?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    We prefer that you not hijack existing threads. Please always start a new thread with every new question.

    This is the original - http://forum.allaboutcircuits.com/showthread.php?t=20671.

    Rearranging the values in descending order might satisfy the assignment, especially is the number of instructions were small enough.
     
  3. cozmo

    Thread Starter New Member

    Mar 16, 2009
    2
    0
    I am tryin to find the max value of and array using MARIE assembly language.

    I think i would have to use a skipcond but first i would have to load the first number in the array then subtract the next number from it and use the skipcond to compare it to 0. Use an if then else loop to go through the array to find the max value.

    does that sound right?
     
Loading...