apu test on hardware plz?

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

Moderator: Moderators

Post Reply
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

apu test on hardware plz?

Post by Zepper »

- I'd like to request to someone else with a devkit to run the following test in the NES.

1. boot up (around 1 second)
2. SEI to prevent IRQs to trip
3. select apu mode 0 (4 steps) by writting to 4017h.
4. wait a few frames (around 1 second too)
5. select apu mode 1 (5 steps) by writting to 4017h.
6. wait a few frames (around 1 second too)
7. CLI to allow IRQs to trip
8. check if an IRQ was triggered and print the result.

- Please, let me know the results. I would thank you a lot. ^_^;;
User avatar
Disch
Posts: 1848
Joined: Wed Nov 10, 2004 6:47 pm

Re: apu test on hardware plz?

Post by Disch »

Don't blargg's APU tests already cover this?
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper »

No.
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper »

I though this behaviour would be interesting to investigate, but since nobody has interest... fair enough.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

Maybe if you coded the demo you want people to test... Asking someone else to code it may be a bit too much.
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

Here's an old post, maybe you saw it. I didn't look closely. http://nesdev.com/bbs/viewtopic.php?p=5415#5415

I can tell you that your test would find an IRQ the moment it did CLI, since the APU's frame IRQ flag would get set within a frame of powering up, and if not there, during step 4. The only way to clear it is to disable it via $4017 (set bit 6 I believe), or read $4015. And of course a dummy read of $4015 will clear it, as any read will.
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper »

As expected, it's an hard-to-fix bug that affects Time Lord. In that post, there's an hack to start the frame after 10 lines of VBlank; I'm having the exact same problem described there. The only do-able fix is to cancel any IRQ pending on 4017 write when the apu mode changes from 4 to 5.
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

Fx3 wrote:As expected, it's an hard-to-fix bug that affects Time Lord. In that post, there's an hack to start the frame after 10 lines of VBlank; I'm having the exact same problem described there. The only do-able fix is to cancel any IRQ pending on 4017 write when the apu mode changes from 4 to 5.
<apu> Thank you and come again!
<Time Lord> I just did.
<apu> You and your crazy time-bending shenanigans!

lol
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
Post Reply