Re: NewQ: Difference between an isr and a subroutine is that an isrhas no arguments



Vladimir Vassilevsky wrote:


Wilco Dijkstra wrote:

Well I can see some good uses for interrupts with arguments,
making interrupt routines even easier to write in C.


In ADI VDSP, the interrupt handlers do have arguments.


I'm sure
someone has patented the idea already as it is quite obvious...


An interrupt handler is somewhat similar to a thread. If threads can have arguments, the interrupt handlers can have it too.

and then there are Software Interrupts - it's common for those to have arguments. ( See BIOS calls etc ).

-jg

.