Skip to content

Instantly share code, notes, and snippets.

@kjensenxz
Created June 13, 2017 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjensenxz/eacd2dcabb5497fd6dffbef9bb955e16 to your computer and use it in GitHub Desktop.
Save kjensenxz/eacd2dcabb5497fd6dffbef9bb955e16 to your computer and use it in GitHub Desktop.
BITS 64
CPU X64
global _start
section .text
_start:
inc rdi ; stdout, will not change after syscall
mov rsi, y ; will not change after syscall
mov rdx, 8192 ; will not change after syscall
_loop:
mov rax, 1 ; sys_write
syscall
jmp _loop
y: times 4096 db "y", 0xA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment