diff --git a/helloworld/hello b/helloworld/hello index 6dab388..b55677b 100755 Binary files a/helloworld/hello and b/helloworld/hello differ diff --git a/helloworld/hello.asm b/helloworld/hello.asm index 5fa0fa0..4f468fa 100644 --- a/helloworld/hello.asm +++ b/helloworld/hello.asm @@ -1,16 +1,35 @@ section .data - text db "Hello World",10 - + text db 65,10 + fuckvalue db 255 + sleeplength db 255 + sleepcounter db 0 section .text global _start _start: - mov rax, 1 - mov rdi, 1 - mov rsi, text - mov rdx, 14 - syscall + mov r8, [fuckvalue] ; put the shit in the register for later + mov r9, [text] - mov rax, 60 - mov edi, 0 - syscall + + 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 + + +_end: + mov rax, 60 + mov edi, 0 + syscall diff --git a/helloworld/hello.o b/helloworld/hello.o index 416f624..83a2140 100644 Binary files a/helloworld/hello.o and b/helloworld/hello.o differ