Search found 43 matches

by x0000
Mon Jun 02, 2014 4:22 pm
Forum: NESemdev
Topic: Blargg MMC3 tests
Replies: 6
Views: 2377

Re: Blargg MMC3 tests

For this old version the test begins before shell init, so it is actually the routine named reset in each asm file. Again, frame IRQ is disabled at the start, see prefix_mmc3.asm:11 (I believe it has a fixed address in the ROMs, $e0b5 / $a0b5) UPD. ASL $20 STA $E000 RTI I don't see it anywhere in ol...
by x0000
Mon Jun 02, 2014 12:55 pm
Forum: NESemdev
Topic: Blargg MMC3 tests
Replies: 6
Views: 2377

Re: Blargg MMC3 tests

The reset routine is at shell.s:44
by x0000
Mon Jun 02, 2014 6:27 am
Forum: NESemdev
Topic: Blargg MMC3 tests
Replies: 6
Views: 2377

Re: Blargg MMC3 tests

Well, it does disable APU frame irq manually, doesn't it? See test_mmc3.inc:14
Note, that $%11000000 immediately clears frame IRQ flag, that is directly connected to CPU's IRQ line, and makes sure it won't be set until both IRQ inhibit flag and counter mode will change.
by x0000
Thu May 29, 2014 3:25 pm
Forum: NESemdev
Topic: APU length counters, modes and timings
Replies: 1
Views: 1391

Re: APU length counters, modes and timings

I did investigate it all but I didn't correct wiki. Probably will do it when I will have time. If you have specific questions you can ask me in pm.
by x0000
Sat May 03, 2014 4:48 pm
Forum: NESemdev
Topic: puNES Emulator
Replies: 766
Views: 1026753

Re: puNES Emulator (ex Fnes)

Great work! But Huge Insect still not playable, one of two versions of scanline.nes that I have works perfectly, the other one not that well, in Micro Machines I still see artifacts that are not supposed to be there. And as I discovered there are some problems with APU with writing to 0x4017 and rea...
by x0000
Wed Apr 30, 2014 12:58 am
Forum: NESemdev
Topic: phibiaNES emulator.
Replies: 40
Views: 34139

Re: phibiaNES (pNES) emulator.

Well, my vpnes emulator sounds even more hilarious. I don't have any intentions to change the emulator's name though.
by x0000
Mon Apr 28, 2014 12:24 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

tepples , I had tested this ROM on my program and was surprised that it also showed both passed and failed. That means that emulators has problem with 0x4015 as well as with frame counter operation. Thank you very much for your cooperation, it was extremely helpful. Now I think I understand how APU...
by x0000
Sun Apr 27, 2014 9:36 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

I used this to avoid CPU/APU alignment: lda #0 sta $4017 ldx #$39 ldy #$18 loop: dex bne loop dey bne loop nop nop lda $4015 bne wait_1 wait_1: And it works well in emulators. I am not clearing frame_irq correctly, maybe that's why it doesn't work... But frame_irq should be cleared at reset. Anyway ...
by x0000
Sun Apr 27, 2014 8:42 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

Thats really strange behavior then. I haven't seen it in any emulator so far. Also PPU should not affect CPU/APU synchronization here. Proly I should just buy NES and torture every single thing of it.
by x0000
Sun Apr 27, 2014 7:22 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

tepples, "passed and failed" you mean v1 passed, v2 failed, right?
by x0000
Sun Apr 27, 2014 4:08 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

Hi again... I've started to implement my algorithm for frame counter and noticed that my tests don't work the way I wanted them to. So I adjusted the timings, and «precise» now fail it again (but my program does not :P). So if anyone can check this on real NES it would be great. I've attached new ve...
by x0000
Mon Apr 21, 2014 11:24 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

Quietust Well, it does not pass even basic Shay's tests. For example "Writing $00 or $80 to $4017 shouldn't affect flag" (3-irq_flag.s:39) cycle ab db rw Fetch pc a x y s p frm_t frm_a frm_b frm_c frm_d frm_e frm_f frame_irq frm_quarter frm_half sq0_len 62374 0031 b8 1 CLV 0031 00 00 00 ba nv‑...
by x0000
Sun Apr 20, 2014 11:01 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

Ok, now it looks better. I've corrected my algorithm, now it should correctly avoid jitter. Many emulators, that failed test_3, now pass all the tests. However it's not good news for others. UPD. Hold on. Now Visual 2A03 does not pass test_3. I can't understand anything now... UPD2. Now it really lo...
by x0000
Sun Apr 20, 2014 10:38 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

That's exactly what you would see with puNES or Nestopia. Actually I tried to avoid alignment, so it is highly possible that it's my fault here.
by x0000
Sun Apr 20, 2014 8:16 am
Forum: NESemdev
Topic: Help me with APU Frame counter
Replies: 18
Views: 10421

Re: Help me with APU Frame counter

tepples, I want to add tests for mode 1 too then (in case if someone would think, that in first two cases length counter clocked only once because of mode change)