Can anyone help with how to do a division and get a remainder in ASSEMBLY language not C using kwikstik K40? I try to use the instruction
I can not find any info on what registers are to be used to hold what values if using in assembly, so it crashes when it runs the function, but it does compile and call the function.
All i need to do is calculate a remainder after division like the following:
A0 = D1/10 // D1 being some number
D0 = D1 mod 10
but there is no modulo operation in the ARM K40 kwikstik so the only thing i found was to use the div() external function