sfl-examples/slide-examples/assembly/ex15.asm

22 lines
252 B
NASM

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"