2021-09-07 06:55:26 -04:00
|
|
|
section .data
|
2021-09-07 07:47:24 -04:00
|
|
|
text db 65,10
|
|
|
|
fuckvalue db 255
|
|
|
|
sleeplength db 255
|
|
|
|
sleepcounter db 0
|
2021-09-07 06:55:26 -04:00
|
|
|
section .text
|
|
|
|
global _start
|
|
|
|
|
|
|
|
_start:
|
2021-09-07 07:47:24 -04:00
|
|
|
mov r8, [fuckvalue] ; put the shit in the register for later
|
|
|
|
mov r9, [text]
|
|
|
|
|
|
|
|
|
|
|
|
mov rax, 1 ;syscall 1
|
|
|
|
mov rdi, 1 ; arg 1 (stdout)
|
|
|
|
mov rsi, text ; the shit to print
|
|
|
|
mov rdx, 2 ; the length
|
|
|
|
syscall ;invoke
|
|
|
|
|
|
|
|
|
|
|
|
cmp r8, r9
|
|
|
|
je _end
|
|
|
|
|
|
|
|
;inc text
|
|
|
|
mov r9, [text]
|
|
|
|
inc r9
|
|
|
|
mov [text], r9
|
|
|
|
|
|
|
|
jmp _start
|
|
|
|
|
2021-09-07 06:55:26 -04:00
|
|
|
|
2021-09-07 07:47:24 -04:00
|
|
|
_end:
|
|
|
|
mov rax, 60
|
|
|
|
mov edi, 0
|
|
|
|
syscall
|