Date : Tue, 24 Nov 2009 15:55:41 +0000
From : rs423@... (Mick Champion)
Subject: Quine
Ian Stocks wrote:
> Mick Champion wrote:
>
>> Sorry, I should have done PLP there as opposed to PLA. So if I wanted to
>> save A and its flags and do something else
>>
>> PHA
>> PHP
>> //do other code
>> PLA
>> PLP
>>
>> ?
>>
>
> Nope, think of a stack of plates, the last one you pushed onto the pile
> will be the first one you pop off the pile. So the push and pop need to
> be nested.
>
> PHA
> PHP
> //do other code
> PLP
> PLA
>
Got you! So a dodgy sub-routine could plant something else in the stack
and cause problems if it then leaves it there.
Cheers,
Mick