MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


New revision for nba play by play ?
#297118 - 10/06/12 07:53 PM


The main code rom on my board is labelled 778b01, not 778a01.
Also, checksum is different than the one in mame.
If you needed I can send it to the mame team.

My game revision is AAB.

Edited by alca (10/06/12 07:57 PM)



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297119 - 10/06/12 08:01 PM


I've seen cases where Konami has labeled a chip differently with the same data, but it's very rare, and since you've checked the crc, it's definitely different and needed, so yeah, email it in or send me a pm with a download link.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297120 - 10/06/12 08:07 PM


MP sent with the dump and crc/sha1 info
Tested in mame. It is working with the same issue as the current dump (hardware security error).

Btw, is the security error related to the rtc ?



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297121 - 10/06/12 08:15 PM


Probably but I haven't looked into it.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297188 - 10/08/12 12:52 PM


don't know what happened to my board.
After dumping all chips, my board now refuses to boot.
I know get hardware security error...

Any idea how I can fix this ?



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297200 - 10/08/12 04:12 PM


Nope, I've never owned that hardware. I've heard a lot of problems mentioned with the timekeeper chip.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297271 - 10/09/12 01:03 PM


that suck...



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297287 - 10/09/12 06:34 PM


I don't know how dumping the roms could have possibly affected the timekeeper. No idea what could have happened unless it just happened to be the timekeeper's death time.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297347 - 10/10/12 01:57 PM


you must be right. Probably I am out of luck and the timekeepers battery died...

Is there a way to reprogram it ? Is there a dump of it in mame ?



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297354 - 10/10/12 07:27 PM


There does appear to be a m48t58y-70pc1 dump in mame and many programmers can reprogram a new one yes.



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297356 - 10/10/12 07:57 PM


BTW you will probably want to program a replacement for that program rom you sent me too, to the version in the mame dump. You can check ebay, mouser and digikey for replacement chips.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297399 - 10/11/12 12:07 PM


Ok, I will give a look at it. Any idea why I can't get nbapbp run in mame ? It isn't marked non working...



TafoidAdministrator
I keep on testing.. testing.. testing... into the future!
Reged: 04/19/06
Posts: 3135
Loc: USA
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297401 - 10/11/12 12:24 PM


> Ok, I will give a look at it. Any idea why I can't get nbapbp run in mame ? It isn't
> marked non working...

It regressed.. some time ago actually and haven't been fixed for whatever reason.
http://mametesters.org/view.php?id=2004

I can understand it's confusing to have drivers/games which should work actually not working, but it happens. If you need to see the game, you can get MAME 0.125 (last integer before breakage).



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Tafoid]
#297404 - 10/11/12 01:08 PM


Ok, I will give it a try. Thank you for giving the last working version.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297405 - 10/11/12 01:14 PM


Checked with 0.125, and it is working. Surprisingly, it doesn't need the rtc dump. How can it work without it ?

edit: rtc data is in DRIVER_INIT(nbapbp)

Edited by alca (10/11/12 01:17 PM)



etabeta
Reged: 08/25/04
Posts: 2035
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297408 - 10/11/12 02:28 PM


> Checked with 0.125, and it is working. Surprisingly, it doesn't need the rtc dump.
> How can it work without it ?
>
> edit: rtc data is in DRIVER_INIT(nbapbp)

this probably means that we have no proper dump and the driver is hacked up with the bare minimum settings needed to further test the emulation.

probably someone with more knowledge might pop up to correct me if I'm wrong



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: etabeta]
#297410 - 10/11/12 04:06 PM


I played a bit with hornet 0.125 driver. Basically, I tried to change the rtc data, or skip it at all. It never stopped the game running. The game only reinitialized the data.
Also, if I remove the timekeeper from the memory map, I am granted with an rtc error, but the game played after.

So the rtc might not be the cause of my problem.

Finding why it gives a hardware security in recent mame might help to figure why I also get this error.



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297412 - 10/11/12 05:07 PM


I don't know why your hardware stopped working but diagnosing this way as if mame is your hardware is a bad idea. It is not and will never be that accurate.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297414 - 10/11/12 05:32 PM


I know, but this is the single option I have.



SmitdoggAdministrator
Reged: 09/18/03
Posts: 16877
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297415 - 10/11/12 05:47 PM


You might be able to get a reply from someone who has gone through the same thing on Arcade Otaku or KLOV or similar. Or you might get lucky with the older mame version but it will be hit and miss for diagnostics and might lead you in the wrong direction.



Anonymous
Unregistered
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297420 - 10/11/12 06:47 PM


> Finding why it gives a hardware security in recent mame might help to figure why I
> also get this error.

The error in MAME is due to a 93C46 being added. According to the board notes, this should only be used when a LAN board is present. Whether the board notes are right or not I can't say.

To make the game playable in MAME change src\mame\drivers\hornet.c

case 3: /* I/O port 3 */
/*
0x80 = JVSINIT (JAMMA I/F SENSE)
0x40 = COMMST
0x20 = GSENSE
0x08 = EEPDO (EEPROM DO)
0x04 = ADEOC (ADC EOC)
0x02 = ADDOR (ADC DOR)
0x01 = ADDO (ADC DO)
*/
r = 0xf0 | (eeprom->read_bit() << 3);
r |= adc1213x_do_r(adc12138, space, 0) | (adc1213x_eoc_r(adc12138, space, 0) << 2);
break;



change: r = 0xf0 | (eeprom->read_bit() << 3);
to: r = 0xf0; (eeprom->read_bit() << 3);

the game will then boot. The time keeper has nothing to do with the message, if it's blank then the game will initialise it. The default contents that mame currently uses are unnecessary and wrong.



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: Smitdogg]
#297447 - 10/12/12 10:07 AM


I found what caused the regression from 0.125u6 to 0.125u7.
To make nbapbp work in 0.125u7, you have to modify sysreg_r in hornet.c and replace r = 0xf7 | (eeprom_read_bit() << 3);
with r = 0xf7;

On my side, it helps to understand what did wrong.
In conclusion, on my board, the faulty looks like to be
the AT93C46 SOP serial eprom.

Hope It can help you fix this.

Edited by alca (10/12/12 10:09 AM)



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: ]
#297448 - 10/12/12 10:35 AM


exactly what I found. Nice job !



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297452 - 10/12/12 03:34 PM


Because I am curious, I looked at the nba pbp code and found something interesting.

the main game code is encrypted. It is decrypted and copied into ram at runtime. Also, the decryption relies on the previously decrypted byte to decrypt the following.

So you cannot patch the encrypted game code. If you do,
you have to decrypt it, patch it, and encrypt the whole code to make it work.

Also, I found that nba play by play only requires 0xf7 data from serial eprom handler at boot time.

After that it looks it doesn't care.

Since I have no means to update the serial eprom, I managed to get the main code patched to avoid checking it at boot time.

It looks to run fine in mame. Will look later if it works on my board so I can play to it again...



alca
MAME Fan
Reged: 06/22/09
Posts: 90
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297483 - 10/13/12 07:52 AM


Don't know if anyone cares now, but I successfuly patched the nba play by play code rom to avoid the nasty hardware security error, so I got my game running again. Amusingly, only a 4 byte patch is needed for it. But you have to add more code to actually make the rom code patch the code decrypted in ram:

Also, looks like the security key for it is nothing more than a serie of zeroes...




B2K24
MAME @ 15 kHz Sony Trinitron CRT user
Reged: 10/25/10
Posts: 2663
Send PM


Re: New revision for nba play by play ? new [Re: alca]
#297502 - 10/13/12 08:02 PM


Of course we care because that's 1 more working board and PCB saved or restored.

Congrats on getting it working again



MichaelMichael54321
Cautious Forum Poster
Reged: 01/19/13
Posts: 34
Loc: U.S.A
Send PM


Re: New revision for nba play by play ? new [Re: Tafoid]
#326804 - 06/11/14 04:23 AM


Yeah, couldn't the devs just implement the fix in a future MAME version to avoid having searching this thread for the solution and having a separate, self-complied MAME revision?



What? There's nothing here to say.



Sune
Connected
Reged: 09/21/03
Posts: 5648
Loc: Lagoa Santa, Brasil
Send PM


Re: New revision for nba play by play ? new [Re: MichaelMichael54321]
#326805 - 06/11/14 04:44 AM


> Yeah, couldn't the devs just implement the fix in a future MAME version to avoid
> having searching this thread for the solution and having a separate, self-complied
> MAME revision?

Of course they could. It's not like that never happens.

The bug was assigned to Aaron Giles six years ago:
http://mametesters.org/view.php?id=2004

S



mU$!c inc.
MAME Fan
Reged: 09/30/14
Posts: 1
Send PM


Re: New revision for nba play by play ? new [Re: ]
#332557 - 09/30/14 08:06 AM Attachment: nbapbp.png 2 KB (0 downloads)


> > Finding why it gives a hardware security in recent mame might help to figure why I
> > also get this error.
>
> The error in MAME is due to a 93C46 being added. According to the board notes, this
> should only be used when a LAN board is present. Whether the board notes are right or
> not I can't say.
>
> To make the game playable in MAME change src\mame\drivers\hornet.c
>
> case 3: /* I/O port 3 */
> /*
> 0x80 = JVSINIT (JAMMA I/F SENSE)
> 0x40 = COMMST
> 0x20 = GSENSE
> 0x08 = EEPDO (EEPROM DO)
> 0x04 = ADEOC (ADC EOC)
> 0x02 = ADDOR (ADC DOR)
> 0x01 = ADDO (ADC DO)
> */
> r = 0xf0 | (eeprom->read_bit() << 3);
> r |= adc1213x_do_r(adc12138, space, 0) | (adc1213x_eoc_r(adc12138, space, 0) <<
> 2);
> break;
>
>
> change: r = 0xf0 | (eeprom->read_bit() << 3);
> to: r = 0xf0; (eeprom->read_bit() << 3);
>
> the game will then boot. The time keeper has nothing to do with the message, if it's
> blank then the game will initialise it. The default contents that mame currently uses
> are unnecessary and wrong.

-------------------------------------------------------

I use EmuCR-mameplus-0.154r5188-x64. Ya know, MAME PLUS 64-Bit 0.154. How would I edit this driver in MAME Plus? the standard builds you could recompile with HK's Compiler 64, but I don't see any tutorials or steps for MAME Plus anywhere to recompile any version of MAME PLUS.

I just want to edit this little 4 bytes of data in the version of MAME PLUS(0.154)that I have currently setup and am playing games on right now. Only thing is I have already updated my roms to 0.154. I don't guess that a recompiled version of the same .exe would have an effect on my gamelist.xml file, right? I just want to get this game working again. Any help with NBApbp i greatly appreciated. I've looked all over for how to compile MAME Plus.

OFF TOPIC:
I've already run my roms through crlmampro, and good to go. I just made some new cheats for Double Dragon & Double Dragon II. Well ones that Pugsy hasn't put into any of his cheat file releases. I am gonna submit them, but need some help with Stage select, I can jump to Stage 5, but no stages in between.

[ATTACHED IMAGE]

Attachment



jammin23
MAME Fan
Reged: 12/07/17
Posts: 1
Send PM


Re: New revision for nba play by play ? *DELETED* new [Re: alca]
#371702 - 12/07/17 06:31 AM


Post deleted by jammin23



DarthMarino
MAME Fan
Reged: 05/27/11
Posts: 145
Send PM


Re: New revision for nba play by play ? new [Re: jammin23]
#371717 - 12/08/17 12:49 AM


Press F11 and it will display the speed on the upper right. If it drops below 100% at any point you will hear the audio cut out. What are you computer specs? It's running at a steady 100% on my machine.



View my gameplay videos:
Light Gun Games with Aimtrak
Trackball Games with X-Arcade Trackball
Star Wars Episode 1 Racer with Dual Throttle Controls



jammin23
MAME Fan
Reged: 12/07/17
Posts: 1
Send PM


Re: New revision for nba play by play ? new [Re: DarthMarino]
#371721 - 12/08/17 06:59 AM


Hey Darth

8GB ram, m2 256 SSD, i7 6700hq, GTX950M

F11 shows it to be running at 100% almost the entire time, though can run at 92-98% at times.

The sound doesnt so much skip, sounds like it repeats itself a fair bit
e.g. 'rod rodman' instead of just rodman, or jojohnson instead of johnson etc.
It can also happen when its showing at 100% as well.

Just curious, have you given the game a real steady play, with 'a lot going on' so to speak (people everywhere , trying to steal the ball, really trying to give it a heavy job to work through?)

What emulator and version are you using and what are your specs? What rom are you using AAB or JAA version?

When I load either of those two roms - both advise there are 'known sound emulation issues' so it must be common for this game, hence me trying to chase a solution?

Thanks again

Edited by jammin23 (12/08/17 09:09 AM)


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 20 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 10851