Hello,

how can I use the DIV function in masm32?
I only get an error...

Thanks, Nordwind:(
Posted on 2001-09-28 14:21:57 by Nordwind64
I had answered this regarding the IntMul function here, following is it applied to IntDiv

.data
Val1 dd 56
Val2 dd 32

.code
invoke IntDiv,Val1,Val2
; now eax = 56/32

But the int instructions are faster
xor edx,edx
mov eax,Val1
idiv Val2
; now eax = 56/32
Posted on 2001-09-28 17:21:54 by Eóin