Jump to content
Tuts 4 You
Sign in to follow this  
Mouradpr

(a Mod B)

Recommended Posts

Mouradpr

please i want a source code with masm for calcul ( a mod B )... :(

thnks

Edited by Mouradpr (see edit history)

Share this post


Link to post
CyberLord

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 :P

Share this post


Link to post
Mouradpr

no no,

Share this post


Link to post
Loki
no no,

Um, you might have to be a little more explicit than that about what you want

Edited by Loki (see edit history)

Share this post


Link to post
zako

I suspect he means masm syntax such as

.if (10h mod 2)
; do something
nop
.else
; do something else
nop
.endif

though he may find the assembled code not quite as he expected.

Share this post


Link to post
Mouradpr

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

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...