[Coco] 6502 to 6809 translation

Phill Harvey-Smith afra at aurigae.demon.co.uk
Mon Aug 1 08:42:42 EDT 2011


On 01/08/2011 13:23, John Kent wrote:
> Rather than using Y you might want to use B,
>
> that way
>
> lda (data_addr),y
>
> would become
>
> ldy data_addr
> lda b,y

Yeah that would work quite a lot of the code seems to be something like

	ldy	#something
loop:
	lda	(indirect),y
	;; do something with a here !
	iny
	bne	loop


So I guess that would become

	ldy	(indirect)
	ldb	#something
loop:
	lda	b,y
	incb
	bne	loop


That would work well I think.

Thanks.

Phill.



More information about the Coco mailing list