6 # set rounding mode to "truncate towards minus infinity"
7 # otherwise demos get out of step and play wrong
13 # fixed_t FixedMul (fixed_t a, fixed_t b)
15 FixedMul
: mullw r5,r3,r4
21 # fixed_t FixedDiv (fixed_t a, fixed_t b)
26 subi r1,r1,8 # make space on stack for FP
64 # do fixed pt division
76 # divide by 0, overflow