How can I make an Assembly program for Windows that prints integers from 1 to 10? [closed]

Question!

I want to make an Assembly program for Windows, using MASM, which will use a loop to print integers from 1 to 10. What would be the simplest code which does that?



Answers
Fine, here is a simple MASM32 app that prints the numbers 1 - 10 to the console:

include masm32rt.inc

.code
start:
    mov     ebx, 1
PrintNext:
    print   str$(ebx), 13, 10
    inc     ebx
    cmp     ebx, 10
    jng     PrintNext
    inkey    
    exit
end start
By : Gunner


This video can help you solving your question :)
By: admin