Skip to content

Instantly share code, notes, and snippets.

@ryanbriones
Created August 27, 2011 04:21
Show Gist options
  • Save ryanbriones/1174969 to your computer and use it in GitHub Desktop.
Save ryanbriones/1174969 to your computer and use it in GitHub Desktop.
mov esi, 1000
mov eax, 0
loop:
cmp eax, esi
je end
mov ebx, eax
mod ebx, 3
rem ebx
cmp ebx, 0
je matching_eax
mov ebx, eax
mod ebx, 5
rem ebx
cmp ebx, 0
je matching_eax
inc eax
jmp loop
matching_eax:
add edx, eax
inc eax
jmp loop
end:
prn edx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment