SDK6800 Assembly Question Help

Discussion in 'Assembly Language Programming (ALP) Forum' started by lakia, May 29, 2009.

  1. lakia

    lakia New Member

    Joined:
    May 29, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    1. Create a 6800 program which sums the modulo (remainder) of all elements in a (zero terminated) array with an input number n:

    n .byte $7

    myArray .byte 2,9,7,2,3,5,0

    So this will compute:


    7 mod 2 + 7 mod 9 + 7 mod 7 + 7 mod 2 + 7 mod 3 + 7 mod 5

    After your program executes, the output (which has an initial value of zero) should be stored in a variable called output:

    output .byte 0

     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    This isn't a free homework service. Post what you've got so far, with a description of where you're stuck and we'll try to help you.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice