andymikulski / nES6

NES emulator written in ES6
Other
4 stars 1 forks source link

Player 2 Joypad doesn't work #12

Closed andymikulski closed 7 years ago

andymikulski commented 7 years ago

Attempting to pass inputs into player 2's joypad does not actually work, but the code indicates that it should be working. May need to check out re-instating the InputManager.

andymikulski commented 7 years ago

~Digging into it, I've found out a few things. One - the code should be working (that is, memory is being written and joypads are being picked up correctly). Two - the CPU seems to be skipping over the P2 address (0x4017) in Memory#write8 (the CPU is what triggers the write8 call).~

~This is quickly stepping into assembly-land, so it's going to take a bit of experimenting to figure out how to solve this.~

Disregard everything. The $4016 writes are also supposed to strobe $4017, currently $4016 writes do not update the $4017 strobes! It works!