[Coco] Quick 6809 Q for night owls in the US

Luis Antoniosi (CoCoDemus) retrocanada76 at gmail.com
Tue Apr 15 12:21:18 EDT 2014


There are so many ways to do it:

          ldb #hicounter
hiloop pshs b
          ldb #locounter
lolopp decb
          bne loloop
          puls b
          decb
          bne hiloop

you can play with the stack as well


On Tue, Apr 15, 2014 at 12:08 PM, L. Curtis Boyle
<curtisboyle at sasktel.net> wrote:
> Of course, if you have a 6309, you could just do:
> LDW #HOWMANYITERATIONS
> Loop
> [code]
> DECW
> BNE Loop
>
> :-P
>
> L. Curtis Boyle
> curtisboyle at sasktel.net
>
>
>
> On Apr 15, 2014, at 10:01 AM, Juan Castro <jccyc1965 at gmail.com> wrote:
>
>> It's in a variable. :-P
>> Em 15/04/2014 10:33, "Steve" <6809er at srbsoftware.com> escreveu:
>>
>>> On 4/15/2014 6:29 AM, Juan Castro wrote:
>>>
>>>> EUUGH! NO!
>>>> LDX HOWMANYITERARIONS
>>>>
>>> No, that's LDX #HOWMANYITERARIONS
>>>
>>>>
>>>> YOURLOOP (DO SOMETHING)
>>>> LEAX -1,X
>>>> BNE YOURLOOP
>>>>
>>>> On Tue, Apr 15, 2014 at 10:28 AM, Juan Castro <jccyc1965 at gmail.com>
>>>> wrote:
>>>>
>>>>> YOURLOOP LDX HOWMANYITERATIONS
>>>>>
>>>>> * DO SOMETHING
>>>>>
>>>>> LEAX -1.X
>>>>> BNE YOURLOOP
>>>>>
>>>>> On Tue, Apr 15, 2014 at 10:19 AM, Mark McDougall <msmcdoug at iinet.net.au>
>>>>> wrote:
>>>>>
>>>>>> How would one write a (tight) loop, say a few thousand iterations in
>>>>>> 6809
>>>>>> assembler? Can it be done with the X/Y registers? D? Or do I need a
>>>>>> memory
>>>>>> variable? It's for a delay...
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> |              Mark McDougall                | "Electrical Engineers do
>>>>>> it
>>>>>> |  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"
>>>>>>
>>>>>> --
>>>>>> Coco mailing list
>>>>>> Coco at maltedmedia.com
>>>>>> http://five.pairlist.net/mailman/listinfo/coco
>>>>>>
>>>>> --
>>>> Coco mailing list
>>>> Coco at maltedmedia.com
>>>> http://five.pairlist.net/mailman/listinfo/coco
>>>>
>>>
>>>
>>> --
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> http://five.pairlist.net/mailman/listinfo/coco
>>>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



-- 
Long live the CoCo



More information about the Coco mailing list