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



In article <456cacd6$1@xxxxxxxxxxxx>, no.spam@xxxxxxxxxxxxxxxxxxxxxx
says...
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


Not really an interrupt in the hardware sense since the main line code
knows when they are called and actually sets up registers to pass info.
BIOS calls are really just common subroutines that are in firmware.

.