dec-to-bcd

xod/bits/dec-to-bcd

Converts a byte value in range [0, 99] into a packed binary coded decimal byte
dec-to-bcd
@/dec-to-bcd
Converts a byte value in range [0, 99] into a packed binary coded decimal byte
INnumber
dec-to-bcd
IN
OUT
OUTbyte

Tabular tests

INOUT
0.0000h
9.0009h
12.0012h
85.0085h
99.0099h