Jump to content
Tuts 4 You

(a Mod B)


Mouradpr

Recommended Posts

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

thnks

Edited by Mouradpr
Link to comment

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

Link to comment
no no,

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

Edited by Loki
Link to comment

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.

Link to comment

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

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
×
×
  • Create New...