section .data
msg db "Hello world!"
N db 10
section .text
global _start
_start:
mov rbx,12
loop_start:
cmp rbx, 0 ; rax と 0 を比較
je loop_end
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, rbx
syscall
mov rax, 1
mov rdi, 1
mov rsi, N
mov rdx, 1
syscall
sub rbx, 1
jmp loop_start
loop_end:
mov rax, 60
mov rdi, 0
syscall
To embed this project on your website, copy the following code and paste it into your website's HTML: