Answers for "for loop in assembly"

4

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

Browse Popular Code Answers by Language