I wrote a simple assembly program to do division, however when trying to compile in visual studio express I am just told that I have triggered a breakpoint and it won't compile.
Other programs have compiled fine so far and I can't see what I am doing wrong in this one.
.386
.model flat, c
.stack 100h
printf PROTO arg1:Ptr Byte, printlist:VARARG
.data
msg1fmt byte 0Ah,"%d",0
number sdword 5
divisor sdword 1
answer sdword ?
.code
main proc
mov eax, number
cdq
idiv divisor
mov answer, eax
INVOKE printf, ADDR msg1fmt, answer
main endp
end