[CPU] push/pull stack

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
[CPU] push/pull stack
by on (#73797)
- Do you know if the PPU receives a clock OR pending IRQ/NMIs are acknowledged when the CPU push/pull stack?

by on (#73799)
I'd think the instruction that pulls flags off the stack would act just like the CLI/SEI instruction for the purpose of interrupts.
And isn't NMI edge-triggered anyway?
I'd also think that the PPU and CPU just do their thing regardless of what the other is doing.
Re: [CPU] push/pull stack
by on (#73800)
Zepper wrote:
- Do you know if the PPU receives a clock OR pending IRQ/NMIs are acknowledged when the CPU push/pull stack?


Why would you have reason to question whether the PPU gets clocked? Aren't the CPU and PPU clocked independently? I don't know of a hardware gate between the two that would *prevent* the PPU from receiving a clock if the CPU does something.

The pushing/pulling of stack is just like any other memory access...if you run your PPU 3 clocks for every CPU cycle then run it 3 clocks when the CPU accesses the stack. Maybe I'm confusing your question?
Re: [CPU] push/pull stack
by on (#73803)
...
Re: [CPU] push/pull stack
by on (#73806)
Zepper wrote:
- Sorry, but why would you have reason to be a dick?

Temper, temper. Calling someone a dick is sometimes itself a dick move.
Re: [CPU] push/pull stack
by on (#73862)
EDIT: well, looks like the final word is yes, if that matters.