g++ x64 register Problem
Posted: Thu Feb 05, 2009 3:33 am
Hi,
I've tried to use the inline assembler of g++ to access the x64 register r8:
But when I try to compile the whole code with g++ I got the following error message: "Video.cpp:26: Error: Bad register name '%%r8'"
What's my mistake?
Thanks for your help
I've tried to use the inline assembler of g++ to access the x64 register r8:
Code: Select all
void Video::clear()
{
asm("movl $0,%%r8"); /* Clear Screen */
asm("int $0x30"); /* Call Video driver (text mode) */
}
What's my mistake?
Thanks for your help