You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Richard Tremblay et Djamal Rebaïnesystèmes <strong>de</strong> numérationDécimalBCD47 0 1 0 0 0 1 1 1+ 47 + 0 1 0 0 0 1 1 11 0 0 0 1 1 1 0 8F+ 0 0 0 0 0 1 1 0 Chaîne <strong>de</strong> correction94 1 0 0 1 0 1 0 0+ 47 + 0 1 0 0 0 1 1 11 1 0 1 1 0 1 1 DB+ 0 1 1 0 0 1 1 0 Chaîne <strong>de</strong> correction141 0 0 0 1 0 1 0 0 0 0 0 1X 10 Décalage <strong>de</strong> 4 bits vers la gauche1410 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 = [(47 +47 +47) X 10]47 0 1 0 0 0 1 1 1+ 47 + 0 1 0 0 0 1 1 11 0 0 0 1 1 1 0 8F+ 0 0 0 0 0 1 1 0 Chaîne <strong>de</strong> correction94 1 0 0 1 0 1 0 0 = (47 + 47)1410 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0+ 94 + 1 0 0 1 0 1 0 00 0 0 1 0 1 0 0 1 0 1 0 0 1 0 0 14A4+ 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 Chaîne <strong>de</strong> correction1504 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 01.5.4 La divisionLa division par 10 d'un nombre représenté en BCD se réalise par un décalage <strong>de</strong> quatre bits <strong>de</strong>position vers la droite. Par exemple, on a:DécimalBCD47 / 10 Décalage <strong>de</strong> 4 bits à droite <strong>de</strong> 0 1 0 0 0 1 1 1 donnant4.7 0 1 0 0 . 0 1 1 1On indique ce décalage par le point décimal.La division entière par 10 d'un nombre représenté en BCD se réalise en éliminant les 4 bits àl'extrême gauche. Par exemple, on a:DécimalBCD47 DIV 10 Élimination <strong>de</strong>s 4 bits <strong>de</strong> gauche <strong>de</strong> 0 1 0 0 0 1 1 1 donnant4 0 1 0 042