Binary-coded decimal Binary-coded decimal In computing and electronic systems, binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bits, usually four or eight. Special bit patterns are sometimes used for a sign or for other indications (e.g., error or overflow). In byte-oriented systems (i.e. most modern computers), the term "unpacked" BCD usually implies a full byte for each digit (often including a sign), whereas "packed" BCD typically encodes two decimal digits within a single byte by taking advantage of the fact that four bits are enough to represent
SEX (computing) SEX (computing) In computing, the SEX assembly language mnemonic has often been used for the "codice_1" machine instruction found in the Motorola 6809. A computer's or CPU's "sex" can also mean the endianness of the computer architecture used. x86 computers do not have the same "byte sex" as HC11 computers, for example. Functions are sometimes needed for computers of different endianness to communicate with each other over the internet, as protocols often use big endian byte coding by default. On the RCA 1802 series of microprocessors, the SEX, for "codice_2," instruction is used to designate which of the machine's sixteen