Home
last modified time | relevance | path

Searched refs:bcd (Results 1 – 2 of 2) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/
DABRTCMC.cs117 int bcd = 0; in IntToBcd()
121 bcd |= nibble << (digit * 4); in IntToBcd()
124 return (uint)bcd; in IntToBcd()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/MSP430X/
DMSP430X.cs1334 private uint BCDToBinary(uint bcd) in BCDToBinary() argument
1336 return ((bcd >> 0) & 0xf) * 1 + in BCDToBinary()
1337 ((bcd >> 4) & 0xf) * 10 + in BCDToBinary()
1338 ((bcd >> 8) & 0xf) * 100 + in BCDToBinary()
1339 ((bcd >> 12) & 0xf) * 1000 + in BCDToBinary()
1340 ((bcd >> 16) & 0xf) * 10000; in BCDToBinary()