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

22 lines
252 B
NASM
Raw Permalink Normal View History

2023-12-14 14:12:51 +01:00
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"