Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global _start
- section .text
- _start:
- mov cx, 0
- mov ax, 0
- _loop:
- cmp cx, 1000
- je _done
- add cx, 3 ; next multiple of 3
- add ax, cx
- add cx, 2 ; next multiple of 5
- add ax, cx ; #thinkoutofthebox
- sub cx, 5 ; reset
- jmp _loop
- _done:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement