Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!xmission!news.bbs-scene.org!macgui.com!benoit0123 From: Benoit0123 Newsgroups: comp.sys.apple2.programmer Subject: Re: Subsecond Timing (No Slot Clock) and Embedded Subroutines inAztec C65 Date: Tue, 17 Sep 2013 06:37:34 +0000 (UTC) Organization: Mac GUI Lines: 26 Message-ID: References: <9b42129b-83c8-4589-a82a-f8c97895bbed@googlegroups.com> NNTP-Posting-Host: gunshin.wiredns.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: technocratmedia-w1.news.bbs-scene.org 1379399854 15808 74.119.145.48 (17 Sep 2013 06:37:34 GMT) X-Complaints-To: abuse@bbs-scene.org NNTP-Posting-Date: Tue, 17 Sep 2013 06:37:34 +0000 (UTC) User-Agent: Mac GUI Usenet Xref: csiph.com comp.sys.apple2.programmer:872 Hello Marco, Marco Verpelli wrote: > On Thursday, September 12, 2013 9:57:40 PM UTC+2, Bill Buckels wrote: (snip) > ;SAVE ROM STATUS > > SEI ;NO INTERRUPT WHILE READ THE CLOCK > LDA RDCXROM > PHP > STA SETINTCXROM ;SELECT ROM AND CLOCK It seems that your routine disables the interrupts without reinstating them aa the read is completed. > PLP ;RESTORE ROM CX STATE > BMI $7 > STA SETSLOTCXROM ;PUT IT BACK May I suggest that you put the SEI instruction after the PHP so that the relevant PLP at the end of your routine will restore the I bit too from the saved P and interrupts continue to work they used to before calling your routine? Best regards, BenoƮt