[Coco] 6809 Push/Pull

Dave Philipsen dave at davebiz.com
Sat Jun 6 07:40:36 EDT 2020


Which is the only way that makes any sense, pull in the opposite order that you pushed. Any other way would not make sense.

Dave

> On Jun 5, 2020, at 11:13 PM, Lee <leep at tigerbase.com> wrote:
> 
> I did a quick Google search and this article seems to cover it pretty
> well.  https://silicon-heaven.com/howel/parts/6809_instruction_set.htm
> 
> It looks like registers (on a single PSHS/PSHU) are pushed in the order PC,
> U/S, Y, X, DP, B, A, CC.  They are PULS/PULU'd in the opposite order.
> 
> So if you did PSHS X,Y it would push Y first, then X.  If you did PULS X,Y
> it would pull in the opposite order, X first, then Y.
> 
> -----
> Lee
> 
> 
>> On Fri, Jun 5, 2020 at 9:44 PM Salvador Garcia via Coco <
>> coco at maltedmedia.com> wrote:
>> 
>> Adding to this thread...
>> 
>> Is the developer allowed to do some thing like:
>> 
>> PSHS    X
>> 
>> PULS    Y
>> 
>> 
>> What if I try something like this:
>> 
>> PSHS    X,Y
>> 
>> PULS    X
>> 
>> 
>> Like others, just curious. :-) Thanks, Salvador
>> 
>> 
>> 
>> 
>>    On Friday, June 5, 2020, 03:10:58 PM CDT, Arthur Flexser <
>> flexser at fiu.edu> wrote:
>> 
>> The order of registers in PSHS and PULS is a fixed property of the
>> processor.  PSHS X,Y and PSHS Y,X generate identical opcodes, so it makes
>> no difference which you use.
>> 
>> Art
>> 
>>> On Fri, Jun 5, 2020 at 4:06 PM Jim OKeefe <jimokeefe39 at gmail.com> wrote:
>>> 
>>> For all you ML gurus out there.
>>> 
>>> PSHS    X,Y
>>> 
>>> To return registers to their original values is the correct pull
>>> 
>>> PULS      Y,X
>>> 
>>> Or
>>> 
>>> PULS      X,Y
>>> 
>>> Thanks Jim
>>> 
>>> --
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> https://pairlist5.pair.net/mailman/listinfo/coco
>>> 
>> 
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>> 
>> 
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list