RP2A03 (NES) cpu/sound chip emulator for ARM32.
To connect devices to memory range 0x4020-5FFF use rp2A03MemRead & rp2A03MemWrite. To connect devices to 4016/4017 D0-D7 use rp2A03IORead0 & rp2A03IORead1. To connect devices to 4016 OUT0-OUT2 use rp2A03IOWrite.