1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need help with assembly and 6800

Discussion in 'Assembly Language Programming (ALP) Forum' started by ant, Apr 21, 2007.

Thread Status:
Not open for further replies.
  1. ant

    ant New Member

    Joined:
    Apr 21, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    if anyone knows how to program 6800 assembly please help icon_surprised.gif
    its for a mini assignment for a class at uni (im doing multimedia, have absolutely no interest in programming, but this is a compulsory class that i have to pass >.< )
    and it doesnt help that the tutor has the worst asian accent nobody can understand :mad:

    anyways, the questions are:

    Write a 6800 program to sum up all values between 1 and N (N>0). Then determine if the sum is an even or odd number.
    The value for N should be stored in memory location 0. Memory locations 1 and 2 are used to for storing result. If the sum is odd, sum will be stored to location 1, while location 2 will be set to 0. If the sum is even, sum will be stored to location 2, while location 1 will be set to 0.

    and

    Write a 6800 program to compute the Hamming distance between two of words. Your program should contain the following subroutines:
    * OR. This subroutine performs bit-wise OR between two words. The start of this subroutine should be at memory location 400 (octal).
    * XOR. This subroutine performs bit-wise XOR between two words. It uses OR subroutine. The start of this subroutine should be at memory location 600.
    * CntOnes. This subrountine counts the number of bits which are 1 in a word. The start of this subroutine should be at memory location 1000 (octal).
    Input and output values should be stored anywhere on page 5 (between 1200 to 1377) of the memory.

    if anyone can help please reply here
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    Duplicate of [thread=3967]Need help with assembly using 6800[/thread]. Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page