artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html

Preview meta tags from the artemis.sh website.

Linked Hostnames

3

Search Engine Appearance

Google

https://artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html

z80 Assembly: Binary-Coded Decimal

One method for displaying numbers larger than 16 bits is to convert it to Binary Coded Decimal (BCD) first, and display the result. BCD works by using four bits to store each decimal (base 10) digit of a number. The following code can convert a number to BCD, and display it. It’s currently written to convert a 24 bit number to a 10 digit BCD number, but can be modified to support anything really. It is memory ineffecient, because it uses one byte for each digit rather than storing two digits per byte. This is useful though because it makes the display routine simpler.



Bing

z80 Assembly: Binary-Coded Decimal

https://artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html

One method for displaying numbers larger than 16 bits is to convert it to Binary Coded Decimal (BCD) first, and display the result. BCD works by using four bits to store each decimal (base 10) digit of a number. The following code can convert a number to BCD, and display it. It’s currently written to convert a 24 bit number to a 10 digit BCD number, but can be modified to support anything really. It is memory ineffecient, because it uses one byte for each digit rather than storing two digits per byte. This is useful though because it makes the display routine simpler.



DuckDuckGo

https://artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html

z80 Assembly: Binary-Coded Decimal

One method for displaying numbers larger than 16 bits is to convert it to Binary Coded Decimal (BCD) first, and display the result. BCD works by using four bits to store each decimal (base 10) digit of a number. The following code can convert a number to BCD, and display it. It’s currently written to convert a 24 bit number to a 10 digit BCD number, but can be modified to support anything really. It is memory ineffecient, because it uses one byte for each digit rather than storing two digits per byte. This is useful though because it makes the display routine simpler.

  • General Meta Tags

    9
    • title
      z80 Assembly: Binary-Coded Decimal
    • title
      z80 Assembly: Binary-Coded Decimal | artemis.sh
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • generator
      Jekyll v3.9.2
  • Open Graph Meta Tags

    6
    • og:title
      z80 Assembly: Binary-Coded Decimal
    • US country flagog:locale
      en_US
    • og:description
      One method for displaying numbers larger than 16 bits is to convert it to Binary Coded Decimal (BCD) first, and display the result. BCD works by using four bits to store each decimal (base 10) digit of a number. The following code can convert a number to BCD, and display it. It’s currently written to convert a 24 bit number to a 10 digit BCD number, but can be modified to support anything really. It is memory ineffecient, because it uses one byte for each digit rather than storing two digits per byte. This is useful though because it makes the display routine simpler.
    • og:url
      https://artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html
    • og:site_name
      artemis.sh
  • Twitter Meta Tags

    1
    • twitter:card
      summary
  • Link Tags

    2
    • canonical
      https://artemis.sh/2014/11/06/z80-assembly-binary-coded-decimal.html
    • stylesheet
      /assets/css/site.css

Links

10