Re: A83: Interrupts


[Prev][Next][Index][Thread]

Re: A83: Interrupts




In a message dated 01/21/99 8:14:43 PM, AtmaZ@aol.com writes:

>I think the problem lies with your backup battery :-)  Taking out ALL the
>batteries, including the watch battery, will reset everything, because
>your TI will have lost all power. Anyways, if your problem really IS the
>interrupt mode, here's the syntax.
>
>im        1
>
>According to CalcEm's registers view and J. Matthews' ASM-83 help file,
>IM (interrupt mode) 1 is the default mode.   Stick this line in an ASM
>program, and you should be fine. (Anybody want to verify this?  I AM
>relatively new to Z80 ASM, after all...)
>
>Hope this helps...

Yeah, you're semi-right. The "im 1" and "im 2" just directs the calc to which
interrupt sequence to use, but the 200-times-a-second thing still occurs in
both modes... The guy who asked for this may have accidentally messed with the
port that controls the interrupt speed, so you have to reset the default value
like so... "ld a, $16 / out ($04), a" =P  I think that little fact for the
Default Interrupt Speed came from Bill Nagel, and was passed along by Sam
Heald somewhere... Oh ya, it was from the code of Bill's Off-Routine or
something. =P  So Im saying those are my references, and they can be very well
trusted. ;)  Well, you may want to try that. Hope it helps... =)
														--Jason K.