Turbo C - ISR chaining? (Developers)
> > > With this you should be able to examine and modify the return address
> on
> > > the stack and make your ISR "chain" to another.
> >
> > It's always better to avoid this dirty hacks that depends on ABI. Seems
> > that many C compilers (at least we know DJGPP, BC, OWC) provides clean
> > solution with chain_something function/macro...
>
> What you want is bound to be one kind of dirty hack or another. It's not
> standard in any way (not de jure standard C,
of course not. 'standard C' runs everywhere; '__interrupt' works only on DOS.
> not de facto standard MSDOS C.
whatever standard MSDOS C you are referring to, MSC has had this from version 1.0. WATCOM as well.
having __interrupt but not chain_intr() is just unlikely.
edited to add: Borland compilers (TC, TCPP, BC) indeed seem to have missed this function (and of course SmallC, smallerC, C-- never had this. but I wouldn't call them 'standard' in any way). which made the __interrupt functions able to function as COMx handlers, but not able as multiplex (int 2f) function handlers.
Complete thread:
- Turbo C - ISR chaining? - RayeR, 05.12.2020, 00:26 (Developers)
- Turbo C - ISR chaining? - tkchia, 05.12.2020, 07:09
- Turbo C - ISR chaining? - RayeR, 06.12.2020, 18:25
- Turbo C - ISR chaining? - alexfru, 05.12.2020, 09:48
- Turbo C - ISR chaining? - RayeR, 06.12.2020, 18:29
- Turbo C - ISR chaining? - alexfru, 07.12.2020, 06:32
- Turbo C - ISR chaining? - tom, 07.12.2020, 14:42
- Turbo C - ISR chaining? - alexfru, 07.12.2020, 06:32
- Turbo C - ISR chaining? - RayeR, 06.12.2020, 18:29
- Turbo C - ISR chaining? - tkchia, 05.12.2020, 07:09