SDK6800 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 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.
     
  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