2 ; Christian Krueger, 23-May-2018
4 ; CC65 runtime: helper call for mod/div with signed ints
6 ; When negating values, we will ignore the possibility here, that one of the
7 ; values is $8000, in which case the negate will fail.
10 .import _abs, popax, udiv16
17 stx ptr4+1 ; Save right absolute operand
21 stx ptr1+1 ; Save left absolute operand