Skip to content

RF5C68 Sample Extracting

Technical discussion which is not directly related to VGM files. Talk about Hardware and Software.

Moderator: Staff

  • IG2004 Offline
  • Posts: 5
  • Joined: 2023-05-02, 7:56:19

RF5C68 Sample Extracting

Post by IG2004 »

For a while, I've been wondering what kind of 8-bit PCM (and yes, it's 8-bit PCM according to the VGMRips wiki) the RF5C68 uses in Arcade games like Michael Jackson's Moonwalker, which I want to extract the samples from. I tried importing it to Audacity as a Signed 8-bit PCM, an Unsigned 8-bit PCM, U-Law, and A-Law, but I can't get the samples to sound right. I also tried using GoldWave, but couldn't find the correct setting. Does anyone know what kind of 8-bit PCM the RF5C68 uses?
  • User avatar
  • ValleyBell Offline
  • Posts: 4787
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Re: RF5C68 Sample Extracting

Post by ValleyBell »

The chips uses a "sign + magnitude" format. The highest bit specifies the "sign" and the lower 7 bits specify the magnitude.

Here are value mappings for the 8-bit PCM formats:

Code: Select all

RF5C68:
00..7F -> -0..-127
80..FF -> +0..+127

Unsigned 8-bit PCM:
00..7F -> -128..-1
80..FF -> 0..+127

Signed 8-bit PCM:
00..7F -> 0..+127
80..FF -> -128..-1
  • lo zaffo Offline
  • Posts: 39
  • Joined: 2016-08-03, 22:36:09
  • Location: Italy

Re: RF5C68 Sample Extracting

Post by lo zaffo »

ValleyBell, I agree with You.

Code: Select all

RF5C68 (e.g. PMB 8-bit PCM):
00..7F -> 0..-127
80..FF -> 0..+127

Signed 8-bit PCM:
00..7F -> 0..127
80..FF -> -128..-1

Unsigned 8-bit PCM:
00..7F -> 0..127
80..FF -> 128..255
Ciao!
Post Reply