need help with assembly and 6800
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 :@
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.
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
Re: need help with assembly and 6800
Duplicate of Need help with assembly using 6800. Thread closed.
|All times are GMT +5.5. The time now is 22:14.|