Oxygen Basic

Programming => Example Code => General => Topic started by: Charles Pegge on October 22, 2017, 07:14:25 PM

Title: Recovering remainder after integer division
Post by: Charles Pegge on October 22, 2017, 07:14:25 PM

Following an integer division (CPU division), the edx register holds the remainder:

Code: [Select]
int a, b=199, c=100, d
a=b\c
d=edx
print "result " a " remainder " d '1  99