[Coco] Let's figure out the best method to compile sprites for the CoCo - Please add your input

Darren A mechacoco at gmail.com
Sat May 13 00:23:50 EDT 2017


On Fri, May 12, 2017 at 9:51 PM, William Astle wrote:

> Actually, if you're referring to replacing a LDA or LDB with INCA/DECA or
> INCB/DECB, you do save a byte but you don't save a cycle. The 8 bit
> immediate load instructions are 2 cycles, the same as accumulator INC/DEC.
> It does save a byte, though, and that can be worth it.
>
> It will always be faster to do a 16 bit immediate load compared to a pair
> of INC/DEC instructions. (16 bit immediate load of D is 3 cycles. Two
> INC/DEC instructions in a row is 4 cycles.)
>
>

Unless you happen to be targeting 6309 native mode where the A and B
Inherent mode instructions take only 1 cycle.

- Darren


More information about the Coco mailing list