[Coco] 6809 Push/Pull

L. Curtis Boyle curtisboyle at sasktel.net
Sat Jun 6 14:10:23 EDT 2020


The order of CC and PC in particular of stack push/pulling is based on how it handles interrupts (and FIRQ in particular).

L. Curtis Boyle
curtisboyle at sasktel.net



> On Jun 6, 2020, at 11:57 AM, Dave Philipsen <dave at davebiz.com> wrote:
> 
> Well, for its intended usage of pushing/pulling registers to the stack, it's the way you want it to be. For instance, it's easy to see why the PC should be the first pushed and last pulled. It's also easy to see why B should be pushed before A.
> 
> I'm sure you could find some obscure corner cases where you might want it to do otherwise. But the way it's done is the most logical way and you'd have a hard time convincing me it should be done any other way.
> 
> 
> Dave
> 
> 
> On 6/6/2020 7:32 AM, Bill Gunshannon wrote:
>> On 6/6/20 7:40 AM, Dave Philipsen wrote:
>>> Which is the only way that makes any sense, pull in the opposite order that you pushed. Any other way would not make sense.
>>> 
>> 
>> Depends on what you are trying to do.  :-)
>> 
>> bill
>> 
>> 



More information about the Coco mailing list