Please impl Default for mos6502::cpu::CPU
omarandlorraine opened this issue · comments
I'm rejigging my project to use use emulator but I'm running into this issue where the Default trait is not impl'd for mos6502::cpu::CPU.
I wanted to do this
impl Default for mos6502::cpu::CPU {
fn default() -> Self {
Self::new()
}
}
but it's not allowed because neither Default nor mos6502::cpu::CPU are from my crate
That said I don't really know what Default::default should do here. On the real chip, some of the registers are not preset to a value at reset.
What do we think?
We discussed that in #50 (comment). Would that work for you?
Oh yikes! I completely forgot about that. Apologies for the noise