bits 64 SECTION .data ; empty SECTION .text global _start _start: %include "header.asm.inc" xor rax, rax xor rbx, rbx chk: cmp rax, 10 jge fin inc rax add rbx, rax jmp chk fin: %include "sysexit.asm.inc"