Skip to content

Conversation

@linde12
Copy link
Owner

@linde12 linde12 commented Nov 23, 2020

No description provided.

// Need to think about how we should design this.
// Makes sense that ppu should instead own VRAM, but MMU should
// still be able to write to VRAM, so MMU would need a mut ref to PPU...
let mut cpu = Cpu::new(&mut mmu);
Copy link
Owner Author

@linde12 linde12 Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to refcell or not to refcell, that is the question - alternatively the ppu could own vram and maybe get LY, STAT, etc. passed to it which makes sense i guess... another solution is to not keep a mutable reference to the mmu in the structs, but pass to step & execute_instruction when needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants