💾 Archived View for thrig.me › tech › mincalls.txt captured on 2023-04-26 at 13:55:22.

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
	letters times 9999 db "a"
	.len equ $-letters

section .text
global _start

_start:
	mov rax,sys_write
	mov rdi,STDOUT_FILENO
	mov rsi,letters
	mov rdx,letters.len
	syscall
_exit:
	mov rax,sys_exit
	xor rdi,rdi
	syscall