Re: IIgs Debuggers?
- From: "Michael J. Mahon" <mjmahon@xxxxxxx>
- Date: Wed, 12 Dec 2007 12:33:37 -0800
Polymorph wrote:
To: Jerry
Jerry wrote:
Polymorph wrote:
<snip>
Sounds like the main program has bombed but the interrupt service routines
are still going.
Are you directly disabling any interrupts? If so, I hope you are doing it
this way:
php ; save interrupt state
sei ; disable interrupts
... ; do your interrupt-safe things
plp ; restore original interrupt state
...
Still, it's a tricky problem because it's so non-deterministic.
I do disable interrupts on the initial loading of the wavebank into the DOC RAM (this is mandatory), but I do so *exactly* as you have mentioned. After the initial loading of the wavebank, I never disable interrupts again. I deliberately chose MIDI Synth sequences that all share the same instruments and wavebank file - thereby eliminating the need to reload them (in an effort to minimise delays in transitioning from one song to the next).
I think I need to print out my entire code listing and go over it with a fine tooth comb.
The weird thing is, it usually locks up when left for long periods of doing nothing - ie. its just cycling through the main event handler waiting for keyboard/mouse events OR to be notified that Midi Synth playback has stopped (to indicate moving on to the next sequence). I tried introducing delays into the main event loop fearing some kind of timing problem, but these had no impact.
Its definitely an annoying problem, and hard to track down. I will keep persisting however, as it must be something I'm doing (or not doing). The reason I say this is because I can run LemminGS (which also uses Midi Synth) without any problems - although I haven't given LemminGS the same amount of testing time.
Since your code is not interrupt-driven, I assume that all the interrupt
processing is inside MIDI Synth.
It is possible that a race condition exists inside this code. Has it
been well tested when run under acceleration?
-michael
NadaPong: Network game demo for Apple II computers!
Home page: http://members.aol.com/MJMahon/
"The wastebasket is our most important design
tool--and it's seriously underused."
.
- Follow-Ups:
- Re: IIgs Debuggers?
- From: Polymorph
- Re: IIgs Debuggers?
- References:
- Re: IIgs Debuggers?
- From: Jerry
- Re: IIgs Debuggers?
- From: Polymorph
- Re: IIgs Debuggers?
- Prev by Date: Detecting Intruders on Your System Is Fun and Easy
- Next by Date: Re: IIgs Debuggers?
- Previous by thread: Re: IIgs Debuggers?
- Next by thread: Re: IIgs Debuggers?
- Index(es):
Relevant Pages
|