Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CLI and STI (asm) in my ISR ? (Announce)

posted by cpcdos(R) Homepage E-mail, FRANCE [Lyon], 17.02.2015, 13:22

I have a problem in my ISR runtime ( Compile with GCC x86 for dos )

In the ISR (18.2Hz), I call a subroutine (with 'call' function).
I test this, but after 3-4 seconds, my program crash! I suspect that when I call a function who was not time to finish their operations, a new ISR instance is launched, etc ..etc .. and my stack increases in my memory and CRASH!

if I use in my program CLI at the begin and STI a the end, or conversely of a ISR function, you think that is a solution ?

Best regards

FAVIER Sébastien

ps: Excuse me for my English level, I'm a French student


Complete thread:

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