MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / fromlongbcd

Function fromlongbcd

src/blkdev.cpp:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 return ((v / 10) << 4) | (v % 10);
91}
92int fromlongbcd (uae_u8 *p)
93{
94 return (frombcd (p[0]) << 16) | (frombcd (p[1]) << 8) | (frombcd (p[2]) << 0);
95}
96void tolongbcd (uae_u8 *p, int v)
97{
98 p[0] = tobcd ((v >> 16) & 0xff);

Callers 6

cd_qcodeFunction · 0.85
cdrom_command_multiFunction · 0.85
dev_do_io_cdFunction · 0.85
scsi_cd_emulateFunction · 0.85
cdrom_subqFunction · 0.85
setsubchannelFunction · 0.85

Calls 1

frombcdFunction · 0.85

Tested by

no test coverage detected