[Coco] "Reading" non-readable bytes with PEEK vs ZBUG

jdaggett at gate.net jdaggett at gate.net
Fri Jan 25 20:28:29 EST 2008


On 24 Jan 2008 at 21:08, Darren A. wrote:

> 
> > 
> > If the two bits are not actually known or not consistantly the same
> > then do two LSLs followed by two LSRs.  This will shift the two
> > questionable bits out through the carry and the two LSRs will shift
> > "0" back into the upper two bits. 
> > 
> > problem solved. 
> > 
> > james
> >
> 
> --
> 
> Or better yet, just do one AND #$3F.  That cuts the byte count in
> half, and executes 3 times faster.
> 
> Darren
> 
> 
Yes that works also. 

That becomes a software work around to a hardware problem. Been there 
and done that far too many times. 

james



More information about the Coco mailing list