Inline Assembly
Posted: Thu Mar 29, 2012 12:45 pm
The 'int' command is not compiling using GCC Inline assembly. Here is my code:
Here is my error:
Code: Select all
void uPrint(char uIn){
__asm__ ("movb $0x0A, %ah\n\t"
"movb $uIn, %al\n\t"
"int 16");
}
void uMain(){
uPrint('H');
}
Code: Select all
operand size mismatch for `int'