pub enum IrqPollCycle {
SecondToLast,
Last,
}Expand description
U25: when the boundary samples the lines. Hudson’s hardware manual says only that the inputs “are sampled in the last bus cycle of one instruction” (HW HB-12), not whether a change during that cycle counts.
The reference’s irq_poll_cycle keeps "second_to_last" and "last";
its "mednafen" was withdrawn in the clean rewrite (it raises
ValueError there) and has no variant here.
Variants§
SecondToLast
"second_to_last" (default): the 6502 rule, the lines as they stood
at the end of the instruction’s second-to-last cycle (the frame’s
poll; NESdev for the 6502), which the MAME replays and Covell’s spread
are judged with (the reference’s issue 0003).
Last
"last": the levels at the boundary, so a line that appears in the
last cycle is taken there and one that goes is not, every source
alike. OBSERVED: srg320’s HUC6280_CPU run as a closed box under GHDL
(the reference’s validation/vanish_vhdl.py) does exactly this; MAME
0.285 also decides at the boundary on the levels then (h6280.cpp,
BSD-3-Clause, Bryan McPhail: the check after each instruction reads the
lines’ current state).
Trait Implementations§
Source§impl Clone for IrqPollCycle
impl Clone for IrqPollCycle
Source§fn clone(&self) -> IrqPollCycle
fn clone(&self) -> IrqPollCycle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more