Re: 1581: PHP without PLP resulting in problems

From: smf <smf_at_null.net>
Date: Sat, 12 Mar 2022 09:12:08 +0000
Message-ID: <daebb7f7-f60a-1be5-c24f-7369a676720f_at_null.net>
It needs to go before the lda (or sta if you want, but no earlier)

sta  controller_stat
lda  controller_stat

otherwise bne/beq won't work after jsr wdstatus to check if an error occured.

I assume at one point the plp was just before the lda controller_stat, as setting the flags seems the only reason for even doing the lda after the sta.

On 11/03/2022 17:05, Spiro Trikaliotis wrote:
> Otherwise, I thought about moving the PLP just before the RTS, so it
> cannot be skipped.
>
>
> What do you think?
>
> Regards,
> Spiro
>
Received on 2022-03-12 11:02:48

Archive generated by hypermail 2.3.0.