section .data
value dw 1
section .text
global _start
_start:
mov ebx, [value]
cmp WORD [value], 2
jge next
add [ebx], 1
jmp _start
next:
syscall
mov rax, 60
mov rdi, 0
syscall
To embed this program on your website, copy the following code and paste it into your website's HTML: