1
0
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:
Radosław Kujawa 2018-07-06 10:26:44 +02:00
parent d3dccffe83
commit ef69c47c25
No known key found for this signature in database
GPG Key ID: 18A71CD0FD7270D7

View File

@ -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); static void emul_bbs(rk65c02emu_t *, void *, instruction_t *, uint8_t);
/* Convert 8-bit BCD to binary value. */ /* 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; uint8_t rv;
@ -23,7 +23,7 @@ static inline uint8_t from_bcd(uint8_t val)
} }
/* Convert 8-bit binary to BCD value. */ /* 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; uint16_t shift, digit;
uint8_t bcd; uint8_t bcd;