💾 Archived View for thrig.me › tech › maxcalls.txt captured on 2024-08-18 at 18:33:50.

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

; OpenBSD, AMD64, NASM

BITS 64

%define sys_exit  1
%define sys_write 4
%define STDOUT_FILENO 1

section .note.openbsd.ident
	align 2
	dd 8, 4, 1
	db 'OpenBSD',0
	dd 0
	align 2

section .data
	letter db "a"
	.len equ $-letter

section .text
global _start

_start:
	mov r12,9999
_again:
	mov rax,sys_write
	mov rdi,STDOUT_FILENO
	mov rsi,letter
	mov rdx,letter.len
	syscall
	dec r12
	jnz _again
_exit:
	mov rax,sys_exit
	xor rdi,rdi
	syscall