Yep you can add inline assembly to your C++ code, depending on your compiler depends what type of inline assembly you use.
e.g. (this is C, not C++ there might be a different with how it's done not too sure :/)
If you're using Dev C++ you would do something like
Code:
__asm("fs/movl 0x30, %eax");
__asm("movb 0x0e(%eax), _Variable);
But if you are using VC++ you would do something like
Code:
__asm {
mov eax, dword ptr fs: [0x30]
mov Variable, byte ptr [eax+0e]
}
I think i made mistakes above but anyways what compiler you use, you should search to see what kind of inline assembly you use with it. Also if you are going to attempt to use Direct3D API i and if you don't know it, well i suggest learning some of it before you start.