pouët.net

Random line of code thread

category: code [glöplog]
shr word[bp+2],1

mov ax,13h
int 10h
added on the 2012-03-20 22:27:41 by Faux Clef Faux Clef
mov ax,a000h
mov es,ax
added on the 2012-03-21 03:49:30 by trixter trixter
static final Color[] SUBPALETTE1={
new Color(255,255,147),
new Color(254,246,166),
new Color(255,249,180),
new Color(255,254,196),
new Color(254,255,216)};
added on the 2012-03-21 04:36:45 by hextakis hextakis
knob(b, 2, "Volume", 70.0f+tx, 45.0f+ty, z);
added on the 2012-03-21 05:12:32 by msqrt msqrt
Code:#include "stdio.h" #define DROP ;o(); #define PRINT ;printf("%i\n",o()); #define PUSH ;s[t++]= #define ADD ;u(o()+o()); #define SUB ;m[0]=o();u(o()-m[0]); #define DUP ;m[0]=o();u(m[0]);u(m[0]); #define SWAP ;m[0]=o();m[1]=o();u(m[0]);u(m[1]); #define OVER ;m[0]=o();m[1]=o();u(m[1]);u(m[0]);u(m[1]); #define NIP SWAP DROP #define ROT ;m[0]=o();m[1]=o();m[2]=o();u(m[1]);u(m[0]);u(m[2]); #define DDUP OVER OVER #define TUCK SWAP OVER #define CJ ;if(o())goto #define NOT ;u(!o()); #define AND ;u(o()&&o()); #define OR ;u(o()||o()); #define XOR ;u(o()^^o()); #define EQU ;u(o()==o()); #define START main(){ #define END ;} #define LBL ; int s[256]; int t=0; int m[3]; int o(){return s[--t];} void u(int n){s[t++]=n;}


and then a program:

Code:START PUSH 0 PUSH 1 PUSH 0 DUP PRINT LBL LOOP: ROT ROT DUP PRINT DDUP ADD ROT DROP ROT PUSH 1 ADD DUP PUSH 20 EQU NOT CJ LOOP END
added on the 2012-03-22 13:46:30 by linde linde
How's that XOR going to work? There's no logical XOR operator (^^) In C/C++. ;)

Code:if((vibDepth | vibRate) != 0 && !(fromType & MOD_TYPE_XM)) { // Sweep is upside down in XM vibSweep = 255 - vibSweep; }
Robust programming 101
Code:ON ERROR GOTO NEXT
added on the 2012-03-22 18:45:58 by Joghurt Joghurt
;dammit this shit sucks
Saga Musix: Oh, whoops. Well spotted :P
added on the 2012-03-22 20:35:36 by linde linde
Code:FX_REMOVEVBI SHITFUCK(pc)
added on the 2012-03-28 07:30:07 by StingRay StingRay
Code:.memeater bsr .memeater
added on the 2012-03-28 12:58:21 by scicco scicco
Code:mulu.w #(320<<8)/ZOOMSTEPS_IN,d0
added on the 2012-03-28 18:55:45 by StingRay StingRay
Code:elseif ($inwave(%dm.music).pos < 11517) {


Syncing to music is a PITA in mIRC.

...but I might have something for revision. I still have like 9 days to actually code some parts.
added on the 2012-03-28 22:16:05 by ___ ___
Code:add.w mitDenScherenhaenden(pc),d5
added on the 2012-03-28 22:39:13 by scicco scicco
Code:DWORD dontfuckwithme = 0x1F1 + fileHeader->samples * sizeof(SAMPLE669) + fileHeader->patterns * 0x600;
Code:.fake ds.b 112 ; HACK! 112 = OBJ_SIZEOF
added on the 2012-04-01 19:45:36 by StingRay StingRay
From Mercury's Epsilon final source:
Code: HG_ADD_SCENE( ScenePronLadyBoy , "AttrGreet" ); // ALMOST DONE
added on the 2012-04-02 00:21:43 by urs urs
Code: HG_ADD_SCENE(SceneCubeBendRT, "SceneCubeBendRT"); // DUNNO HATE ME NOW
added on the 2012-04-02 00:22:25 by las las
Code:// NO CLUE WILL FIX LATER
added on the 2012-04-02 00:23:06 by urs urs
Code: // THINK TWICE, THINK SQUARED data[k] *= data[k++];// jep we need this REALLY SQUARED.
added on the 2012-04-02 00:24:16 by las las
Code:// URS: [dreist]ICH HAB DAS MAL WEGEN UNCOOL AUSKOMMENTIERT[/dreist] // LAS: VOLL OK, ICH HAB DAS MAL WEGEN AWESOME WIEDER EINKOMMENTIERT
added on the 2012-04-02 00:25:52 by urs urs
Code: // IMPORTANT stupid::vector<Scene*>* scenes; #include "scenes.inl.h"
added on the 2012-04-02 00:26:17 by las las
Code://static void safeState() { // IST DAS KUNST ODER KANN DAS WEG?! //}
added on the 2012-04-02 00:27:07 by urs urs
Code: #define pubic public
added on the 2012-04-02 00:29:42 by las las

login