Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   Need help with assembly using 6800 (http://www.go4expert.com/forums/help-assembly-using-6800-t3967/)

 ant 21Apr2007 08:19

Need help with assembly using 6800

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 :@

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.

 weirdfo 14May2007 07:22

Re: Need help with assembly using 6800

U dont by any chance go to Griffith Uni in AU???

 DaWei 14May2007 08:17

Re: Need help with assembly using 6800

Their reason for expecting you to pass this course might or might not be BS. I suppose you ought to do it on your own. That would mean making some genuine attempts and then posting your attempts and asking for help with the areas in which they fail. Contrary to some beliefs, this is not a free homework-solution agency.

 All times are GMT +5.5. The time now is 12:38.