faco made the first post Apr 4, 2024 #1 jae E ; if n>=p, exit returning 0 mov eax, 1 ; put 1 in eax test ecx, ecx ; it is faster than jecxz E jz E ; if n=0, exit returning 1 L: ; a loop label mul ecx ; multiply eax by ecx div ebx ; divide the product by p mov eax, edx ; move the...
jae E ; if n>=p, exit returning 0 mov eax, 1 ; put 1 in eax test ecx, ecx ; it is faster than jecxz E jz E ; if n=0, exit returning 1 L: ; a loop label mul ecx ; multiply eax by ecx div ebx ; divide the product by p mov eax, edx ; move the...