pouët.net

Random line of code thread

category: code [glöplog]
Code:lea DOSName+(NewClose-NewOpen)(pc),a1
added on the 2020-08-19 23:01:40 by StingRay StingRay
from fizzer's archive:
Code:return max(max(min(min(min(smin(max(min(min(max(min(min(min(min(max(min(min(max(max(min (
added on the 2020-08-22 15:41:59 by anix anix
Code:mov eax, [GmDls + GMDLS_OFFSETS + eax*4]
added on the 2020-08-23 21:17:01 by Blueberry Blueberry
Code:let quiet_nan = Value::from_comps(false, format.exp_max(), sig_quiet_bit, format.clone());
added on the 2020-08-24 10:46:32 by ferris ferris
Code:ret ; nope, fuck this shit
added on the 2020-08-25 06:21:28 by DevEd DevEd
Code:mul tmp2, isize, tmp1 @ threshold = (intervalsize * prob) >> 16, but we do not shift here but below using the barrel shifter
added on the 2020-08-27 10:56:00 by Moerder Moerder
Moerder: ARM assembly? :D

Code: jne short .no_ifunc ; ... db 0x3c .no_ifunc: xchg ecx, eax
(source)
added on the 2020-08-27 17:01:03 by porocyon porocyon
Yes. I'm porting a certain depacker to ARM. Should have gone for Thumb directly, but writing ARM code is so much more satisfying :P
added on the 2020-08-27 19:19:56 by Moerder Moerder
Quote:
Code:mul tmp2, isize, tmp1 @ threshold = (intervalsize * prob) >> 16, but we do not shift here but below using the barrel shifter

Binary range decoding... Curious to know which depacker you are porting. :)
added on the 2020-08-29 15:28:13 by Blueberry Blueberry
Code:<canvas id=R style=width:99%;background:navy><script>setInterval("s=Math.sin;q= Math.sqrt;d=(N,M,O,a)=>1/q((N-x+50-a/2)**2+(M-y+50-a%2)**2+(O-z+o)**2);f=a=> ;d(i,j,k,a)+d(j,-i,i,a)+d(k,i,-j,a)-.1-A;O=R.getContext('2d');i=s(n/2)* o;j=s(n+=.1)*o;k=s(n/3)*o;for(y=h;y--;)for(x=h;x--;){B=m=z=-o;for(r=9;m++;z+=r)A= 0,A=f(0),A*B<0&&(r/=-2),B=A;z++;Z=f(0);z--;C=f(2)/Z;D=f(1)/Z;O.fillSty le='rgb('+s(n)*o/q(C*C+D*D)+',0,'+(C*h+n^D*h+n)+')' ;O.fillRect(x+h,y+o,1,1)}",n=o=25,h=99)</script>


A 512B intro in JavaScript with some raymarching (475B final version).
Code:for ( ; ;) { // like while true but while gay
added on the 2020-10-12 00:54:44 by fuwn fuwn
Code:movea DS_PointerTable,r7,r6
added on the 2020-10-12 05:11:14 by DevEd DevEd
Code:const uint8 note = musicData.ReadUint8(); if(note & 0x80) { chnState.repeat = note & 0x7F; repeatsLeft += chnState.repeat; *m = chnState.prevCommand; continue; }
From textfx:
Code:int a,b,c,d,e,f,g,h,i,j,k,l; // So sue me
added on the 2020-10-12 12:41:27 by sol_hsa sol_hsa

login