Random line of code thread
category: code [glöplog]
shr word[bp+2],1
mov ax,13h
int 10h
mov ax,a000h
mov es,ax
mov es,ax
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)};
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)};
knob(b, 2, "Volume", 70.0f+tx, 45.0f+ty, z);
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
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
;dammit this shit sucks
Saga Musix: Oh, whoops. Well spotted :P
Code:
FX_REMOVEVBI SHITFUCK(pc)
Code:
.memeater
bsr .memeater
Code:
mulu.w #(320<<8)/ZOOMSTEPS_IN,d0
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.
Code:
add.w mitDenScherenhaenden(pc),d5
Code:
DWORD dontfuckwithme = 0x1F1 + fileHeader->samples * sizeof(SAMPLE669) + fileHeader->patterns * 0x600;
Code:
.fake ds.b 112 ; HACK! 112 = OBJ_SIZEOF
From Mercury's Epsilon final source:
Code:
HG_ADD_SCENE( ScenePronLadyBoy , "AttrGreet" ); // ALMOST DONE
Code:
HG_ADD_SCENE(SceneCubeBendRT, "SceneCubeBendRT"); // DUNNO HATE ME NOW
Code:
// NO CLUE WILL FIX LATER
Code:
// THINK TWICE, THINK SQUARED
data[k] *= data[k++];// jep we need this REALLY SQUARED.
Code:
// URS: [dreist]ICH HAB DAS MAL WEGEN UNCOOL AUSKOMMENTIERT[/dreist]
// LAS: VOLL OK, ICH HAB DAS MAL WEGEN AWESOME WIEDER EINKOMMENTIERT
Code:
// IMPORTANT
stupid::vector<Scene*>* scenes;
#include "scenes.inl.h"
Code:
//static void safeState() {
// IST DAS KUNST ODER KANN DAS WEG?!
//}
Code:
#define pubic public