[Coco] 6502 to 6809 translation

John Kent jekent at optusnet.com.au
Mon Aug 1 09:26:15 EDT 2011



On 1/08/2011 10:42 PM, Phill Harvey-Smith wrote:
>
> 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)

ldy indirect   ; (absolute addressing no indirect)
where the address "indirect" holds the address you want to point to.
.
>     ldb    #something
> loop:
>     lda    b,y
>     incb
>     bne    loop
>
>
> That would work well I think.
>
> Thanks.
>
> Phill.
>

-- 
http://www.johnkent.com.au
http://members.optusnet.com.au/jekent





More information about the Coco mailing list