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.