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 [Jura], 17.02.2015, 13:22

Hi,
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
http://cpcdos.fr.nf/

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

 

Complete thread:

Back to the forum
Board view  Mix view
15116 Postings in 1359 Threads, 249 registered users, 19 users online (1 registered, 18 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum