[Coco] Bitbanging limits
Darren A.
darccml at hotmail.com
Sat Apr 28 21:04:44 EDT 2007
>From: Roger Taylor
>
><snip>
>
>In 8 cycles you can LSR <34 which is 65314, pushing bit #0 into the carry
>bit, followed by a RORA which pushes the carry bit into the data byte.
>But, to prevent graphics distortion on a CoCo 1/2, you might have to first
>set up the PIA's DDR so that bits 1-7 are input bits during the receive
>routines. This way, an LSR to that register shouldn't corrupt anything.
>
-
Roger,
Am I missing something? The following code also executes in 8 cycles:
LDB <$22 4 \
LSRB 2 | 8
RORA 2 /
The one disadvantage is that you clobber B so you can't use it for some
other purpose.
Darren
_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
More information about the Coco
mailing list