diff options
Diffstat (limited to 'yes.asm')
-rw-r--r-- | yes.asm | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,8 @@ ; Version : 0.1 ; Last update : 12/8/2020 ; Description : Do you need ultimate yes performance? Well, you've come to the right place. -; Licence : GPLv3 +; Copyright (C) ; 2020 Gentoo-libre Install +; Licence : GPLv3+ ; Note : Assumes that the stack is at least 65536 bytes. section .data @@ -19,14 +20,15 @@ yees: inc ecx ;increment the counter every loop push qword[Yes] ;push 8 bytes to the stack -test ecx,8192 ;Check for 8192 loops +test ecx,512 ;Check for 8192 loops je yees ;continue if amount is not reached ;;the stack is now full of 32768 bytes of '\ny' (maybe a bit more, but that's ignored) -yes: mov eax,1 ;sys_write mov edi,1 ;fd = STDOUT_FILENO -mov edx,65536 ;print 65536 bytes +mov edx,4096 ;print 65536 bytes mov rsi,rsp ;the value of rsp is the start of where the text is +yes: +mov eax,1 ;sys_write syscall jmp yes ;print those 65536 bytes of 'y\n' forever |