An emulator, assembler, and disassembler for the Sega Game Gear
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
- Released under the terms of the MIT License. See LICENSE for details. */
-
- #include "util.h"
-
- /*
- Convert a BCD-encoded hexadecimal number to decimal.
- */
- uint8_t bcd_decode(uint8_t num)
- {
- return ((num >> 4) * 10) + (num & 0x0F);
- }
|