Scott Dattalo wrote: > Given the variable X, write a routine that computes the odd-parity > of X. Scott: ; X: W: ; ------------ ------------ SWAPF X,W ; ABCDEFGH EFGHABCD ; XORWF X ; ABCDEFGH EFGHABCD ; xor EFGHABCD ; RRF X,W ; -ABCDEFG ; xor -EFGHABC ; XORWF X ; ABCDEFGH ; xor EFGHABCD ; xor -ABCDEFG ; xor -EFGHABC ; RRF X,W ; -ABCDEFG ; xor -EFGHABC ; xor --ABCDEF ; xor --EFGHAB ; RLF X ; BCDEFGH- ; xor FGHABCD- ; xor ABCDEFG- ; xor EFGHABC- ; XORWF X ; BCDEFGH- ; xor FGHABCD- ; xor ABCDEFG- ; xor EFGHABC- ; xor -ABCDEFG ; xor -EFGHABC ; xor --ABCDEF ; xor --EFGHAB Seven words, seven cycles; even parity is in bits 1, 2, 3, 4, and 5 of "X". -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499