Re: A83: ASM question
[Prev][Next][Index][Thread]
Re: A83: ASM question
halt stops the procesor until the next interrupt occurs. So if interrupts
are dissabled (di) a halt will freeze the calc indefinitly (until you take
the batteries out.) If you ei before a halt, that assures that an interrupt
will occur to take the calc out of halt
-Dan
-----Original Message-----
From: Jkhum98@aol.com <Jkhum98@aol.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Monday, September 28, 1998 8:26 PM
Subject: Re: A83: ASM question
>
>
>In a message dated 09/28/98 3:58:40 PM, lairfight@softhome.net writes:
>
>
>>>>>Hey, I was wondering if there was some way to pause an action in
>>>>assembly,
>>>>>since I am making a puzzle game where blocks slowly come towards you,
>>>>
>>>>and I
>>>>>need to know how to make them go slowly.
>>>>>
>>>>
>>>> Use the HALT command
>>
>>>Tell the guy whats involved with the HALT command... I know a little bit
>>like
>>>you should "di" before it, and "ei" after it to avoid some problems, but
>>>theres more to it I think, anyone...?
>>>--Jason K.
>>
>>You certainly wouldn't _avoid_ any problems by disabling interrupts before
>>doing a halt. =)
>>
>>Linus
>>
>
>Ok, you're the man... So, am I just not using the right terminology...? =P
>Well, I remember a while back in July sometime that a few people said they
>were having difficulty whenever they used the Halt command, and they did
>_Something_ that was very general that would fix this... Didnt it have to
do
>with the interrupts? Well, anyways, why dont you tell us what that
_Something_
>is, and just explain anything that is involved with using this command...
>Thanks