[Coco] 6502 to 6809 translation

John Kent jekent at optusnet.com.au
Mon Aug 1 10:08:53 EDT 2011


http://www.steeman.dk/CoCoManuals/6502-6809Translator.pdf

On 1/08/2011 11:26 PM, John Kent wrote:
>
>
> 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