sim1.m: fix logic of mod statement in debug information

Crashed if mod()==0 as last value was not accounted for

Merge request reports

Loading