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

Re: Apple II Random Events?



MJMahon <mjmahon@aol.com> wrote:

> David wrote:
> 
> >If you wanted to wait for a specific character to be pressed, _and_ you
> >weren't on a IIgs (keyboard buffering would kill this), then you could
> >use WAIT -16384,255,255-160.
> 
> David, you are almost _always_ right, but this is
> the rare exception.   ;-)

I had an uneasy feeling while I was writing that article.  I should have
trusted it!

> There is no way to use WAIT to wait for a particular
> multi-bit value, since _any_ one bit in the result is
> sufficient to satisfy the condition.  If all bits are on
> in the "and" mask (255), then any bit in the tested
> location which is _unequal_ to the corresponding
> bit in the "eor" value will terminate the WAIT.

I agree (now).

I'll claim tiredness as an excuse.  :-)

-- 
David Empson
dempson@actrix.gen.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand