Answers for "loop in assembly language"

3

for loop in assembly

xor cx,cx   ; cx-register is the counter, set to 0
loop1   nop         ; Whatever you wanna do goes here, should not change cx
        inc cx      ; Increment
        cmp cx,3    ; Compare cx to the limit
        jle loop1   ; Loop while less or equal
Posted by: Guest on October-10-2020
0

assembly language loop example masm

invoke   readInteger
 test     eax, eax
 jz       exitNow
 mov      x, eax                ;x=[1,2GB-1]
increase:
 invoke   writeInteger, y
 inc      y
 mov      eax, x
 cmp      y, eax
 jne      increase
exitNow:
 invoke   ExitProcess,0
Posted by: Guest on August-04-2020

Code answers related to "loop in assembly language"

Browse Popular Code Answers by Language