1
Homework Help / Computing - How to insert a Parity Bit
« on: November 11, 2009, 05:49:34 AM »
Hi,
I am a Computer Science fresher and I missed the first 3 weeks of class due to admin problems so I get a bit lost for my assignments...
Anyway I've got this assignment that requires me to write a very simple assembly program on Microvision that will take a 7-bit value (0x59) in R1 and insert an odd parity bit at bit position 4, storing the parity-encoded value in R0.
I know I am supposed to use AddC, EOR and MOV functions but I don't know how to do it.
I am not asking for the answer to this particular problem but could anyone give me a general (simple) explanation of how it's done???
Help!!!
Thanks very much
I am a Computer Science fresher and I missed the first 3 weeks of class due to admin problems so I get a bit lost for my assignments...
Anyway I've got this assignment that requires me to write a very simple assembly program on Microvision that will take a 7-bit value (0x59) in R1 and insert an odd parity bit at bit position 4, storing the parity-encoded value in R0.
I know I am supposed to use AddC, EOR and MOV functions but I don't know how to do it.
I am not asking for the answer to this particular problem but could anyone give me a general (simple) explanation of how it's done???
Help!!!
Thanks very much