mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-11 18:49:16 +00:00
No reason to inline BCD conversion.
There's no noticable performance gain.
This commit is contained in:
parent
d3dccffe83
commit
ef69c47c25
@ -12,7 +12,7 @@ static void emul_bbr(rk65c02emu_t *, void *, instruction_t *, uint8_t);
|
||||
static void emul_bbs(rk65c02emu_t *, void *, instruction_t *, uint8_t);
|
||||
|
||||
/* Convert 8-bit BCD to binary value. */
|
||||
static inline uint8_t from_bcd(uint8_t val)
|
||||
static uint8_t from_bcd(uint8_t val)
|
||||
{
|
||||
uint8_t rv;
|
||||
|
||||
@ -23,7 +23,7 @@ static inline uint8_t from_bcd(uint8_t val)
|
||||
}
|
||||
|
||||
/* Convert 8-bit binary to BCD value. */
|
||||
static inline uint8_t to_bcd(uint8_t val)
|
||||
static uint8_t to_bcd(uint8_t val)
|
||||
{
|
||||
uint16_t shift, digit;
|
||||
uint8_t bcd;
|
||||
|
Loading…
Reference in New Issue
Block a user