FDS Audio Master I/O Enable ($4023)

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

FDS Audio Master I/O Enable ($4023)

Post by zeroone »

For emulation purposes, can the Master I/O Enable ($4023) Register be ignored? Does anything write to the sound/disk registers prior to the registers being enabled for copy protection purposes? Will any games fail if the flags are completely ignored?
User avatar
rainwarrior
Posts: 8735
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: FDS Audio Master I/O Enable ($4023)

Post by rainwarrior »

The BIOS initializes this at startup, so really nothing has a chance to write to anything before it's enabled.

The first 3 register writes by the BIOS are:

Code: Select all

$4022: $00 ; disable IRQ if active
$4023: $00 ; diable I/O?
$4023: $83 ; enable I/O, immediately after
I have no idea if any games turn it off later, though. I wouldn't presume it's necessary to emulate for compatibility, but I am not sure why you'd want to leave it out either.

Since the topic refers to it as "audio" enable, if you're asking if an NSF player needs to implement it, there are no FDS NSFs that rely on it to my knowledge, and they all presume it has been enabled before the NSF code is run. (I think most NSF players do not implement it, but again, not sure why you'd intentionally leave it out.)
Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: FDS Audio Master I/O Enable ($4023)

Post by Pokun »

Even if you could confirm that no commercial game depends on it, there's always the possibility of a future software that depends on it. So yeah why would you like to leave something out if it's easy to implement?
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: FDS Audio Master I/O Enable ($4023)

Post by tepples »

I imagine that with the exception of FDS emulator tests, practically all "future software" will be in cartridge form because we can't make new discs, unlike new cartridges.
User avatar
rainwarrior
Posts: 8735
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: FDS Audio Master I/O Enable ($4023)

Post by rainwarrior »

tepples wrote:I imagine that with the exception of FDS emulator tests, practically all "future software" will be in cartridge form because we can't make new discs, unlike new cartridges.
Hawken released an FDS disk soundtrack just a few days ago: thread

I don't know if anyone's still making quickdisks, but used third party FDS disks are relatively cheap and plentiful. Original and bootleg disks are easy to rewrite, much less difficult than using a donor cartridge.
http://www.famicomdisksystem.com/disks/
Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: FDS Audio Master I/O Enable ($4023)

Post by Pokun »

For not mentioning devices like FDSStick that makes it easy to run disk images without a disk or disk drive nowdays.
Post Reply