VRCVII / VRC7 Sound Registers

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
sdm
Posts: 315
Joined: Tue Apr 11, 2006 4:08 am
Location: Poland

VRCVII / VRC7 Sound Registers

Post by sdm »

http://kevtris.org/nes/vrcvii.txt

I have problem with VRC7 sound registers,
kevtris write:

All sound registers are accessed through only two physical registers.
9010:
-----
This is the index register. You write the desired register number here.
9030:
-----
This is the data register. Data written here is stored in the register
pointed to by the above index register.

ok... but

00h - 07h : Custom instrument registers -> This mean $9000-$9007 ?????

10h - 15h : ffffffff -> mean $9010 - $9015 ???

30h - 35h : iiiivvvv -> $9030-$9035 ???

I can't understand this :)
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

Should be simple enough. You set the index, then writes to the data port go to whatever you set the index to.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
d4s
Posts: 94
Joined: Mon Jul 14, 2008 4:02 pm

Post by d4s »

00h - 07h : Custom instrument registers -> This mean $9000-$9007 ?????

10h - 15h : ffffffff -> mean $9010 - $9015 ???

30h - 35h : iiiivvvv -> $9030-$9035 ???
No, you got it wrong.

This is how you do it, at least according to Kevtris' description:

lda #$07
sta $9010
lda #$AA
sta $9030

writes $AA to register $07.
sdm
Posts: 315
Joined: Tue Apr 11, 2006 4:08 am
Location: Poland

Post by sdm »

ok. thanks :)
Post Reply