Posts: 14
Threads: 6
Joined: Jun 2018
Reputation:
2
While looking for information about sound on NGP, I read two different explanations about the use of ports 0x4000 and 0x4001.
4000 is the noise channel setup port
4001 is tone channel 1 to 3 setup port
vs
4000 is the right channel setup port (noise, 1 to 3)
4001 is the left channel setup port (noise, 1 to 3)
Which one is correct? the last one, to allow stereo ?
Posts: 14
Threads: 6
Joined: Jun 2018
Reputation:
2
07-18-2025, 07:35 AM
(This post was last modified: 07-18-2025, 07:37 PM by KanedaFr.)
I'm disassembling the ngpc bios using Ghidra and the ngpc loader
Thanks to this, I also found and extracted its own sound driver...which I'm also disassembling in parallel.
I browsed several open source emulators for informations but it's not explained how it works exactly.
For exemple, you have to activate a mode to direct access the t6w28 from the cpu.
the several sound drivers (like yours) don't use z80 irq nor nmi.
Btw, Your PSGLib is perfect for my current needs , thanks!
I only need to understand how this all works before blindly use it.
Posts: 99
Threads: 6
Joined: Apr 2012
Reputation:
2
I also sent you a PM with some links via this forum.
Posts: 14
Threads: 6
Joined: Jun 2018
Reputation:
2
Edit :
It's documented on neopop
Even the direct Access to DAC.
Posts: 14
Threads: 6
Joined: Jun 2018
Reputation:
2
About the initial question, the K1SoundSimul has the answer : left and right.
Of course, the stereo is only available on the headphone.
The bios use the 2 ports for tune but only One for noise.