Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/03/07 07:44
Read: times


 
#147760 - Compiler-specific
Responding to: ???'s previous message
Jae-yong Kim said:
I have found function like below
void keyboard_interrupt() interrupt 7 using 1
{
   ......
}
I have never seen code like above before

The standard 'C' programming language has no support for hardware-specific issues like interrupts. Therefore anything to do with interrupts, etc, has got to be entirely compiler-specific

There was no part of code with designate keyboard_interrupt() as interrupt routine

So what do you think the word "interrupt" might mean immediately after "keyboard_interrupt()"...?

"using 1" seems to mean interrupt number and I have no idea what "interrupt 7" means.

Because it is entirely compiler-specific, the only way to find out is to look it up in the Manual for the specific compiler.
For Keil, see: http://www.keil.com/support/m...ywords.htm


List of 4 messages in thread
TopicAuthorDate
strange code in AT89C5131 example code.            01/01/70 00:00      
   Compiler-specific            01/01/70 00:00      
      SIGNAL            01/01/70 00:00      
         Incorrect            01/01/70 00:00      

Back to Subject List