Register - Login
Views: 95763245
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
11-15-18 01:13:12 AM

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
Random nobody
Level: 2

Posts: 1/1
EXP: 11
For next: 35

Since: 07-16-18

Since last post: 121 days
Last activity: 121 days

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

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:
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.

Common spammer
Level: 105

Posts: 3303/3306
EXP: 12205728
For next: 56532

Since: 08-02-07

From: Pororoca

Since last post: 59 days
Last activity: 10 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 220d144 [2018-11-04]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

27 database queries.
Query execution time: 0.175240 seconds
Script execution time: 0.005191 seconds
Total render time: 0.180431 seconds