Previous Thread
Next Thread
Print Thread
Page 17 of 120 1 2 15 16 17 18 19 119 120
byuu #52666 08/13/09 11:13 PM
Joined: Aug 2009
Posts: 1,250
Likes: 171
Kale Online Sleepy OP
Very Senior Member
OP Online Sleepy
Very Senior Member
Joined: Aug 2009
Posts: 1,250
Likes: 171
Originally Posted by byuu
Quote
(something about Captain Commando (J) crashing in bsnes)

I can't reproduce that, it runs fine here. Any more details?

Maybe you already fixed it...anyway:

00F915: CLC
00F916: XCE
00F917: SEP #$30
00F919: JMP $c00000
C00000: SBC $ffffff,X
C00004: SBC $ffffff,X
(and so on and on and on)


This is what it does in MESS and presumably in bsnes v0.048 too since that the snescart code is ported from there. It does that in "Live-A-Live (J)" and "3x3 Eyes - Jyuma Houkan (J)" too, pratically decodes the cart as LoROM but it's actually an HiROM...

EDIT: r5429 /src/mame/machine/snes.c: [SNES]: Fixed a vram out of bounds bug

[Linked Image from mamedev.emulab.it]

Last edited by Kale; 08/13/09 11:18 PM.
Kale #52667 08/13/09 11:36 PM
Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Code
00f914 sei         A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nv1BdIzc V:  0 H: 186
00f915 clc         A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nv1BdIzc V:  0 H: 200
00f916 xce         A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nv1BdIzc V:  0 H: 214
00f917 sep #$30    A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nvMXdIzC V:  0 H: 228
00f919 jml $c00000 A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nvMXdIzC V:  0 H: 250
c00000 sei         A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nvMXdIzC V:  0 H: 282
c00001 cld         A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nvMXdIzC V:  0 H: 296
c00002 lda #$8f    A:0000 X:0000 Y:0000 S:01ff D:0000 DB:00 nvMXdIzC V:  0 H: 310
c00004 sta $2100   A:008f X:0000 Y:0000 S:01ff D:0000 DB:00 NvMXdIzC V:  0 H: 326

Not from here it isn't ... that's from v048 official. Maybe an issue with the porting of my detection code?

byuu #52668 08/14/09 12:02 AM
Joined: Aug 2009
Posts: 1,250
Likes: 171
Kale Online Sleepy OP
Very Senior Member
OP Online Sleepy
Very Senior Member
Joined: Aug 2009
Posts: 1,250
Likes: 171
Maybe, I'll check it out tomorrow...

Kale #52669 08/14/09 12:02 AM
Joined: Dec 2005
Posts: 443
Senior Member
Offline
Senior Member
Joined: Dec 2005
Posts: 443
byuu, I don't even work on the SNES driver here smile

Just assume I have "outside interests" that could benefit, but aren't necessarily MAME-architecture compatible. (I doubt it will pass just yet, but I'd assume the tests would have an explanation of expectations that would)

I guess I'm just looking to address the large hole in the SNES testing battery.

At the highest level, you have an SPC700 test ROM from Overload.
In the middle, the SNES test cart.

There's not much else. Nothing to test the 5A22 (where I'm sure I have a bug somewhere). Nothing to test DMA register behavior short of games. Nothing to test IRQ/NMI at a tighter tolerance than the electronics test (which is not terribly precise). Nothing to check for the DRAM refresh. Obviously, your tests come at the extremely fine end of the scale, but they still would serve a purpose in circulation: that of offering a highly precise set of "last tests" for shaking down an emulator.

Joined: Aug 2009
Posts: 1,250
Likes: 171
Kale Online Sleepy OP
Very Senior Member
OP Online Sleepy
Very Senior Member
Joined: Aug 2009
Posts: 1,250
Likes: 171
Ah, before I forgot...
What exactly tests the SNES Test Program under "Eletronics Test"?

Kale #52672 08/14/09 12:35 AM
Joined: Dec 2005
Posts: 443
Senior Member
Offline
Senior Member
Joined: Dec 2005
Posts: 443
Off-hand?

range-time over flag.
interlace odd/even flag (always active)
RAM
interrupts (VERY coarse)

byuu might have ?anomie's? commented disassembly of it. I think that got left behind on my PC upgrade. It's not terribly useful anyway. You have to pass most of them just to get decent game compatibility, and the interlace flag is literally "opposite of whatever it was before" to pass. Not sure we know the initial state of the flag, though.

RTO is the big one, and anomie's documents ought to cover it all.

Kale #52673 08/14/09 12:37 AM
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
I had a partially commented disassembly that anomie made - I'll see if I can dig it up. First it tests things like VRAM and OAM uploads and downloads, then it tries to verify basic raster operations (VIRQ and HIRQ vs. latched counter values vs. the vblank and hblank status flags) and then it tests things like sprite time over/line over.

byuu #52674 08/14/09 01:34 AM
Joined: Mar 2006
Posts: 1,079
Likes: 6
L
Very Senior Member
Offline
Very Senior Member
L
Joined: Mar 2006
Posts: 1,079
Likes: 6
byuu: have frequency counter, will travel. which pin of which chip do you need measured?

EDIT: electronics test stuff? TRAC sent me a bunch, lemme see if i can find it...


LN


"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
http://i570.photobucket.com/albums/ss144/whickercuppajo3/5A22pinout.png

Pin 72 looks to be our target. Should be ~21,477,272hz. The more precision you can get, the better!

Thank you very much in advance, this will be extremely helpful!

byuu #52682 08/14/09 09:09 AM
Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
Is such accuracy even needed? Off the shelf crystal resonator will have about 50ppm initial skew. Even assuming constant ambient temperature (which it is not, worse even there are thermcal cycles when the device is turned on and then off) there will be about 10ppm shift every ten years. It's faster when the part is new and tends to slow down and stabilize as it gets older.
The frequency can be somewhat changed (and hence corrected) with a small variable capacitor but I really doubt getting it within 10ppm or so tolerance was a part of manufacturing process...

Sure, most of the PCBs produced are very similar to each other but every now and then there is a black sheep and it's crystal is way more off compared to the rest. That would mean the game requiring very precise timing would not work on that particular piece of hardware... In that case you can claim to emulate said kind of unit and explain it not working is normal behaviour smile

Page 17 of 120 1 2 15 16 17 18 19 119 120

Link Copied to Clipboard
Who's Online Now
3 members (Kale, 2 invisible), 507 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,930
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com