[Coco] 6502 to 6809 translation
John Kent
jekent at optusnet.com.au
Mon Aug 1 10:04:06 EDT 2011
You also have the U index register which doesn't need the pre-byte
opcode on the load and store instructions like Y does.
The Super Sleuth disassembler for Flex I think can disassemble 6502,
6805, 6800 and 6809 code.
I'm not sure if it can do the 6502 to 6809 code conversion.
It can disassemble 6809 absolute code and turn it into position
independent code I think, which might be useful for OS9/NitrOS9.
looking on google, there used to be a supersleuth manual at
http://os9projects.com/CD_Archive/MANUALS/CSC/SuperSleuth.pdf
but the link doesn't work.
Perhaps others know where it's been moved to.
There is a /6502/ TRANSLATOR. Tr1nsl1tor /6502/ code to /6809/. $75.00
advertised in Sep82 and Apr82 editions of 68 Micro Journal.
John.
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