loop in assembly language
;loop in assembly language
;run on compiler Dosbox or emu8086
mov cx,0
mov cx,4 ;this loop iterate 4 times
loop1:
;loop body
loop loop1
loop in assembly language
;loop in assembly language
;run on compiler Dosbox or emu8086
mov cx,0
mov cx,4 ;this loop iterate 4 times
loop1:
;loop body
loop loop1
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us