Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Turbo C - ISR chaining? (Developers)

posted by alexfru, USA, 07.12.2020, 06:32

> > 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, not de facto standard MSDOS C). You can write proper assembly code for this but you told us you didn't want to.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 248 users online (0 registered, 248 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum