SQ in silver chrome letters, a lab's gear stacked against the S: a rack, two oscilloscopes, pizza boxes and a six-pack. Strange Query Lab

CARDIAC › rust-cardiac › Message codes › RCE0022

RCE0022error

add_times() given the wrong arguments.

error[RCE0022]: add_times() takes the value and how many times: add_times(c, n)
error[RCE0022]: add_times(c, {n}): n is 0 to 99

add_times(c, n) called with something other than a value and a count from 0 to 99.

add_times(c, n) is c added up n times, n * c, with a jump into a row of ADD instructions, once for the tens of n and once for the units. n is 0 to 99, and the product must fit on a card.

let total = add_times(price, count); // count 0 to 99

In a terminal: cargo cardiac help RCE0022.