int Pos = 0;
buff[Pos++]=0x68;
memmove(&buff[Pos],&dllStringptr,4);
Pos+=4;
buff[Pos++]=0xFF;
buff[Pos++]=0x15;
memmove(&buff[Pos],&LoadLibFuncptr,4);
Pos+=4;
if (strInitFunction != NULL)
{
buff[Pos++]=0x68;
memmove(&buff[Pos],&initStringptr,4);
Pos+=4;
buff[Pos++]= 0x50; // push eax
buff[Pos++]=0xFF;
buff[Pos++]=0x15;
memmove(&buff[Pos],&GetProcFuncptr,4);
Pos+=4;
buff[Pos++] = 0xFF; // call
buff[Pos++] = 0xD0; // eax
}
else
{
buff[Pos++] = 0x33; //xor
buff[Pos++] = 0xC0; //eax
}
buff[Pos++] = 0xEB; // jmp 0 as stoppoint
buff[Pos++] = 0xFE;
archie4oz said:HEX is for pussies... It's all about binary opcodes...
I very much wonder if these 'real' programmers have some 'real' application for template metaprogramming.DemoCoder said:Real C++ programmers use template metaprogramming and compile time calculation.
Nick said:I very much wonder if these 'real' programmers have some 'real' application for template metaprogramming.
How about forcing component-wise evaluation of vector expressions? Just take a look at e.g. the TinyVector class in Blitz++.Nick said:I very much wonder if these 'real' programmers have some 'real' application for template metaprogramming.
If it's of any interest, this was my first computer:Basic said:One of the frst times I entered the computer club at my university, there was a guy standing in front of a 19" rack flicking binary switches back'n forth. And yes indeed, he was programming the computer, entering binary opcodes straight from the head.
prolog!JHoxley said:Wait a second... you mean that there are other languages beyond HLSL and C++??