Author Topic: Recovering remainder after integer division  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Recovering remainder after integer division
« 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