BECAME A QUESTION. EXERCISE DEBUG use loop

Started by fernando, May 21, 2005, 05:28:24 PM

Previous topic - Next topic

fernando

I want to use loop to show, with int 21 is very easy(but dont want letter for letter)

BCDEFGHIJKLMNOPQRSTUVWXYZ01234567890abcdefghijklmnopqrtsuvwxyz

thaks you

AeroASM

Here is the basic loop in assembly code:


;For ecx = 5 to 12 (vb style)
;for (long ecx=5;ecx=12;ecx++)  (c style)

mov ecx,5
@@:
;do our stuff with ecx
add ecx,1
cmp ecx,12
jbe @B