Code: Select all
__asm__ volatile ("movb %0, %%al\n"
"movb %%al, (do + 5)\n"
""
"do:\n"
"ljmp $0x08, $flush\n"
""
"flush:"
:: "r" (cs_register)
: "%al");
Thanks for the help.
Oh, and I realize it might be better to use an external ASM function. But... I don't know. I would rather do this in inline assembly. If I can't come up anything else I'll move it to an external file. But I can hope, right?