Yahoo Groups archive

SynthModules

Index last updated: 2026-04-28 23:14 UTC

Message

Re: MIDI interupts

2004-04-11 by djbrow54

--- In SynthModules@yahoogroups.com, "grantrichter2001" <grichter@a...> wrote:
> You have to use "resume" at the end of ISRs and not "end".
> 
> I'm guessing "resume" clears the interupt flag and passes 
> variables back through the stack? Dpoe this thing even have a 
> stack?
> 

I thought of that.  The reason I used the end code was that the code following the ISR never seemed to work right.  When I went to debug it I found that all the variables that I created during the ISR were always 0.  So I started using the debug routine in the ISR.  It always prints the variables as 0.  Then I started using the end statement to really prove that I was in the ISR.  Then I thought that perhaps there was some other mechanism that prevented the proper 'debug' within an ISR.  So my final test was to set a variable in the ISR and then perform conditional IF statements followed by END.  The program always terminates with a path that indicates the variables are 0.  There's got to be something else going on here but I sure don't know what.

Dave

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.