include/masm32/include/masm32rt.inc
.data
a db ?
ab dd 1,2,23,24,25,28,64,32,12,11
divisor dd 2
.code
start:
mov ecx,4
mov ebx,0
mov edx,0 ; clear dividend, high
myloop:
mov eax,ab[ebx] ; dividend, low
div divisor ;
add ebx,4
call output
loop myloop
output proc
push offset a
push eax
call dwtoa
push 0
push 0
push offset a
push 0
call MessageBoxA
ret
output endp
end start