Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   SDK6800 help!!!!!!!!!!!! (http://www.go4expert.com/forums/sdk6800-help-t17737/)

lakia 29May2009 13:32

SDK6800 help!!!!!!!!!!!!
 
1. Create a 6800 program which encodes a 4 bit data word into an 8 bit code word using the hamming algorithm. You are also given the parity as a 4 bit word, with each bit representing odd/even (1 = odd, 0 = even):

dataWord .byte $E

parityWord .byte %1011

Therefore, the parity in the above example is:

Parity bit 1: odd
Parity bit 2: even
Parity bit 4: odd
Parity bit 8: odd

As another example, if the parity word was:

parityWord .byte %0010

Then the parity would be:

Parity bit 1: even
Parity bit 2: even
Parity bit 4: odd
Parity bit 8: even

The output of the program is the correct codeword, which is also stored in a variable initialised to zero.:

codeword .byte 0

After your program executes, then this variable stores the correct codeword generated from the dataword and the parityword.

xpi0t0s 30May2009 13:36

Re: SDK6800 help!!!!!!!!!!!!
 
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.


All times are GMT +5.5. The time now is 15:28.