Call the Atari OS math pack at $D800–$DFFF from 6502 code: the BCD number format, FR0/FR1, INBUFF/CIX/LBUFF, every entry point, PLYEVL, and a tested MADS program that prints results.
The 6502 has no multiply or divide instructions. Tested MADS routines for 8×8 multiplication, 16÷8 division, binary-to-decimal conversion with decimal mode, and BCD score counters, plus the decimal-mode traps.