From f5654816e84d0c537552a0e0834cc17c3a83380f Mon Sep 17 00:00:00 2001 From: zombie Date: Tue, 7 Sep 2021 07:47:24 -0400 Subject: [PATCH] barf made it barf all the characters but i fucked up and it doesnt stop idk why tho --- helloworld/hello | Bin 8840 -> 8968 bytes helloworld/hello.asm | 39 +++++++++++++++++++++++++++++---------- helloworld/hello.o | Bin 848 -> 1120 bytes 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/helloworld/hello b/helloworld/hello index 6dab3889d4a9068079dfafd4a48f58aef4000f70..b55677b51b453e65fb1737b1721a9140a2c2fba9 100755 GIT binary patch delta 432 zcmeBh?Qol*!PqfTGoLe%0RjRiF4X5_g>qOY7br?>b`ap_=lAJmQDstaVDRbYQDsnY znEan#Oo0igjGxul@RGbA(+!!p*$lxmA0A|4mTOdP#fe}ccid%rinT!}%(F}5dNMMMA zED&H|V&Is(QbFD-tu#5iEHS4vm7zE%HMJloH7~s+1Hw+uFU>1SEnVvWKDqW8maWMSCE7rJ}hghXT+7Am9MH6$Ds-n0@kB ZMQu(2MX&&a_hd~abIxcePaVjU2LR;IMV$Zu delta 256 zcmeBh>u{Z*!N@UDGoMqP0Rq$~F4X7bfpT~ze^8XzoFKr@KUqLPl#LH4%+I>nRbV&& zBt|VBkJOx;e1-7*qMQ`2i63PqD<~K+ica3BAZ{rDR4Bl}#K5EA05u6h$>0!IhKdVJ zW>l0HkB?6(E{-oQNh~U1h)+#PEJ*}Xc`1{l6f-BEP*h-4pZrqMo{?v=rjog+fC9wi l6%dMn1xPbbE>+Uz+yRx*m@KFuJb90j3g-i;h&oh+2LPA~F46!1 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 416f624ac4ce5e938f8ddb6b2768e33888900aad..83a2140a4da4f05182a99f9d064d726de3ec61cb 100644 GIT binary patch literal 1120 zcmbVK%}T>S5T2x|^{3KYL=nN0ddoq*D5CXHQHTehpsej`!1RY?BlYB2`Vu~Z$D&~I z=3{vGqEAqFl38M>1;K@6X1@Ktnc3OBulXmoWr0~196}x$6rh^Bsdo27V# z?7Fto>OT^AL_A}7{Vl!0XM)@h()UP+9Bhf#Kb{|rh>{w=?`)vs_sgjrV8J2&PG1qn z^^A!s#q+&)wPbi_qc{H{lYG7m4m4qi)C#{p@R~vi@RaN+@Zum=krJ2MyK7~Z;z))f zBVn4q7k22t_t;sCsxb9M22ZXp%%DFe8KbHys*{0=t>=XbN8;x^P$oBwvS>rUwh z0vU!KPsA-qM|PDoZf-@GNQgrzyP<4ft040mousW~1oc>nNI_k;oB7+ob7AkM|1y;} XIEAoA4o<*u5!xl3^UeF@IMLw;uZBdv delta 146 zcmaFBae-~Z0!E&R3+)-zCq6W1beJs3XfN8p!~g~pAQS^DkY=5n%c#vMzzh)*pS+OK zoYMfxlbHOFQJ%*mH76%uAw0h*CxvUW43ne~A5bkn>kb