Register - Login
Views: 95177083
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
09-21-18 03:29:55 PM

Jul - The Cutting Room Floor - Riverse Kids (unlicensed) - SFC game with interpreted scripting language inside it New poll - New thread - New reply
Next newer thread | Next older thread
dhg2
Random nobody
Level: 1


Posts: 1/1
EXP: 8
For next: 3

Since: 07-16-18


Since last post: 67 days
Last activity: 67 days

Posted on 07-16-18 11:11:28 AM Link | Quote
Hello,

I was recently looking for strings inside various SNES ROMs I had lying around, and I discovered that Riverse Kids (othello game where you get rewarded with hentai for winning) is built on what seems to be some sort of interpreted programming language that looks a bit like a variant of BASIC. The code starts at 0x8000 in the ROM.

At the end of the code section, there's the text "MIHO for SNES", I wonder if that's the name of the language or the interpreter software.

I wrote a script to extract the program text from the ROM, with line numbers added. Here it is: http://dusthillguy.ddns.net/folder/files/quickupload/rivs_.txt
I don't know if the line numbers match up with the line number references in the program, I just counted each newline 0x0D character.
There's some binary data mixed in with the program text, I'm assuming from the context that those are text strings in Japanese. I've represented those as [xx] where xx is the byte value in decimal.

Riverse Kids doesn't have a page on TCRF at the moment, but I thought I'd post this on this forum anyway because this is the most appropriate place on the internet I could think of to post this information. I thought it was very interesting and I wanted to share it with people.

Regards,
dhg2
Joe
Common spammer
🍬
Level: 105


Posts: 3303/3306
EXP: 12124869
For next: 137391

Since: 08-02-07

From: Pororoca

Since last post: 5 days
Last activity: 3 hours

Posted on 07-16-18 12:43:55 PM Link | Quote
The stuff that looks like binary data is halfwidth Katakana. The script text is encoded as Shift JIS.

Rather than using line numbers, it looks like the # character is what the labels refer to. There are exactly 177 of them, and the "GO" commands don't reference any labels above 177.

The "MIHO for SNES" text seems to be part of a block of data compressed with a variant of LZSS. It looks like there might be several blocks of compressed data, each starting with "LZ" as a signature, so you might find more strings if you figure out how to decompress them.
Next newer thread | Next older thread
Jul - The Cutting Room Floor - Riverse Kids (unlicensed) - SFC game with interpreted scripting language inside it New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

27 database queries.
Query execution time: 0.155926 seconds
Script execution time: 0.004902 seconds
Total render time: 0.160828 seconds
Memory used: 524288