Mouradpr Posted July 9, 2007 Share Posted July 9, 2007 (edited) please i want a source code with masm for calcul ( a mod B )... thnks Edited July 9, 2007 by Mouradpr Link to comment
CyberLord Posted July 9, 2007 Share Posted July 9, 2007 xor edx, edx ; edx must be zero mov eax, num1 mov ecx, num2 idiv ecx ; eax = int (num1 / num2); => the quotient ; edx = num1 mod num2 ; => the reminder It's simple Link to comment
Loki Posted July 9, 2007 Share Posted July 9, 2007 (edited) no no,Um, you might have to be a little more explicit than that about what you want Edited July 9, 2007 by Loki Link to comment
zako Posted July 9, 2007 Share Posted July 9, 2007 I suspect he means masm syntax such as.if (10h mod 2); do something nop.else; do something else nop.endifthough he may find the assembled code not quite as he expected. Link to comment
Mouradpr Posted July 9, 2007 Author Share Posted July 9, 2007 In fact, I want to create a new encryption algorithm similar to something RSA but it is difficult ... By Assembly .A language other langue...Tell them very soon. thnks For all Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now