Previous Thread
Next Thread
Print Thread
Page 1 of 7 1 2 3 4 5 6 7
Joined: Jun 2008
Posts: 205
B
byuu Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
It appears I was able to dump the ST-0018 program ROM:



... amusingly, through the controller port.

http://byuu.org/temp/st0018-20120225.tar.bz2

The ST-0018 is used by Hayazashi Nidan Morita Shougi 2.
It holds the distinction as the only coprocessor not yet emulated, and the only game not yet playable.
Completing this would give us 100% total compatibility.
And from there, all that is left are strange peripherals like keyboard controllers and horse-race-betting dial-up modems.

Cydrak looked at the file, and found ARM 32-bit instructions. The chip dates to 1994, so this would be pre-THUMB. Possibly ARMv6 or older.

Discussion thread is here:
http://board.byuu.org/viewtopic.php?p=56471#p56471

I'd humbly like to ask for anyone's assistance who is familiar with ARM and would like to help us get this emulated.

Finishing this one last chip will fulfill a 7.5+-year dream of mine; and I'll be eternally grateful to anyone who can assist.

Joined: May 2004
Posts: 1,703
Likes: 1
H
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,703
Likes: 1
Originally Posted By byuu
It appears I was able to dump the ST-0018 program ROM:



... amusingly, through the controller port.

http://byuu.org/temp/st0018-20120225.tar.bz2

The ST-0018 is used by Hayazashi Nidan Morita Shougi 2.
It holds the distinction as the only coprocessor not yet emulated, and the only game not yet playable.
Completing this would give us 100% total compatibility.
And from there, all that is left are strange peripherals like keyboard controllers and horse-race-betting dial-up modems.

Cydrak looked at the file, and found ARM 32-bit instructions. The chip dates to 1994, so this would be pre-THUMB. Possibly ARMv6 or older.

Discussion thread is here:
http://board.byuu.org/viewtopic.php?p=56471#p56471

I'd humbly like to ask for anyone's assistance who is familiar with ARM and would like to help us get this emulated.

Finishing this one last chip will fulfill a 7.5+-year dream of mine; and I'll be eternally grateful to anyone who can assist.


What have you tried? I imagine the MAME core would handle it. I'm assuming you already know how it communicates with the main system in order to have dumped it using this method? It sounds like it would just be a case of hooking up the CPU then connecting the various latches needed (although being a custom chip you can't discount additional timers / custom co-processor and the like)



Joined: May 2009
Posts: 2,024
Likes: 60
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,024
Likes: 60
Get us the ROM, sounds trivial to hook up since MAME speaks ARM up through ARM9

Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
I think the original post contains the link you need...

anyway, byuu, congrats!

Joined: Jun 2008
Posts: 205
B
byuu Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Yes, the ROM is here:
http://byuu.org/temp/st0018-20120225.tar.bz2

It is 0xf3.bin.

From the SNES side, the register ports are:
$3800r data port from ST018 to SNES
$3802r data port from SNES to ST018
$3804w command register (results in $3800)
01 = unknown
aa = board upload
b2 = unknown
b3 = player lost test
b4 = player won test
b5 = check test
f1/f2 = test registers (returning $00 seems enough)
f3 = dump ROM
f4 = dump RAM(?)
$3804r status register
d7 = chip ready
d4 = write ready
d0 = read ready
... and that's it. Very small interface.

So for instance, you want to know if player 1 was checked.
You write $aa to $3804. Then you write the board into $3802 (9x9 grid + 16 bytes for promotion information.) Now write $b5 to $3804, wait a bit, read $3800. It will be 1 if checked, 0 if not checked.

I can jump on IRC/AIM if someone wants to try hooking it up to an ARM core in MESS. Right now, I'm not even sure where to begin execution when the chip powers on.

Joined: May 2004
Posts: 1,703
Likes: 1
H
Very Senior Member
Offline
Very Senior Member
H
Joined: May 2004
Posts: 1,703
Likes: 1
Originally Posted By byuu
Yes, the ROM is here:
I can jump on IRC/AIM if someone wants to try hooking it up to an ARM core in MESS. Right now, I'm not even sure where to begin execution when the chip powers on.


0

:-)

The MAME ARM core works pretty well, from a CPU side the main pitfall is if it has a custom co-processor (like the data east stuff does, IIRC our emulation is still hardcoded to that co-processor)

Last edited by Haze; 02/25/12 04:15 PM.
Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Congratulation, byuu. smile

Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
Ok, that's a pretty funny looking dumping rig smile Nice work as always, though, byuu!

Related trivia: NCL (Nintendo Co Ltd, the Japanese guys) would use an oscilloscope on the controller ports to verify correct timing for games using non-standard controllers (e.g. the multi-tap or gun or mouse).

ETA: pulled it up in IDA Pro, it's definitely valid little-endian ARM, of a fairly old architecture vintage (I'd guess v3 or v4).

Last edited by R. Belmont; 02/25/12 11:31 PM.
Joined: Jun 2008
Posts: 205
B
byuu Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
This is going to take me a lot longer, since I have to write my first ARM core. Happy that it's pre-THUMB, at least.

So far ...
Code:
00000000 b 0x000000b0
000000b0 mov r10,#0x4000002c
000000b4 mov r2,#0x00000002
000000b8 ldr r10,r2 (?) [I would have expected this to be a store ... weird)


Really hoping it doesn't have any custom vendor extension opcodes, or extra ROMs in there somewhere, or anything terrifying like that. Guess we'll find out soon enough.

Joined: Mar 2006
Posts: 1,072
Likes: 5
L
Very Senior Member
Offline
Very Senior Member
L
Joined: Mar 2006
Posts: 1,072
Likes: 5
WOW! Congratulations!

LN


"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
Page 1 of 7 1 2 3 4 5 6 7

Link Copied to Clipboard
Who's Online Now
3 members (Revenant, belegdol, 1 invisible), 17 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,070
Posts118,941
Members5,014
Most Online890
Jan 17th, 2020
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