extended assembly
"Martin Fflores" <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
hi! everyone, i have a rare problems here, i dont know if i do somethign
wrong or the compiler have some problems, when i read a value from a port(a
byte) the first time it's retun to me a byte so i catch and use printf to
show this value, the secon time its return to me a integer value or a dont
know, let me give you a example:
char value=0;
__asm__ __volalile__("cli;inb $0x60,%0;sti;":"=r"(value));
printf("%x",value);// the first time usually return 1c
// this is the second time
__asm__ __volalile__("cli;inb $0x60,%0;sti;":"=r"(value));
printf("%x",value);// this print in teh screen ffffffa ainteger value
i'm expecting a ACK response for the keyboard ACK is in the ffffffa the
first byte buti cant never know ir caouse when i ask for ack it inst ack in
ffffffa and it is bigger than a byte why iot happend??????????????????''
Take Care Folks.
Martin Flores
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/