Author Topic: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!  (Read 11133 times)

0 Members and 1 Guest are viewing this topic.

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« on: October 17, 2014, 09:43:17 am »
I'm tired after all the hacking and sound editing I did to get these, so for now I'll just leave a link to the game's tcrf entry, where I uploaded everything. There are three tunes and two voice (yes, voice!) clips.

If you don't know what tcrf is, it's a site called The Cutting Room Floor, dedicated to all the unused stuff found in games (and a few related subjects). There is other unused content in Donkey Kong featured there, such as an image of a cement pie falling over, but those have been known for a good while now, whereas this is a brand new discovery.
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Offline JCHarrist

  • Spring Jumper
  • *
  • Posts: 643
    • Donkey Kong Forum
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #1 on: October 17, 2014, 10:41:07 am »
Nice find! Cool to think that no one has heard those sounds for 33 years.

Interesting that they had synthesized speech for Pauline but didn't implement it into the final game. Those must have taken up a pretty big chunk of memory.
Member for 11 Years DKF Founder Former CK World Record Holder - Arcade CK Killscreener DK Killscreener

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #2 on: October 17, 2014, 10:51:01 am »
It did! The game has 4 KB of ROM reserved for digital samples, but it's only used for DK's buzzing roar. I knew that sounded too big for such a simple effect; this explains where the rest of that space went.
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Offline LMDAVE

  • Spring Jumper
  • *
  • Posts: 639
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #3 on: October 17, 2014, 12:56:30 pm »
Wow!! Dude this like beyond cool. Any new finds in donkey kong is major gold to an enthusiast like most here. Like Jeff said, the fact this was left unheard for 33 years and just hearing them now. Great find!
Donkey Kong (Arcade): 1,108,100

Donkey Kong 1-1: 12,900

http://twitch.tv/LMDAVE
Member for 11 Years DK 1.1M Point Scorer Blogger DK 1M Point Scorer DK Killscreener Former DK Level 1-1 World Record Holder Twitch Streamer

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #4 on: October 17, 2014, 04:40:48 pm »
I made a submission to slashdot now. Vote for it so you can spread the news!
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Donkey Kong Genius

  • Guest
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #5 on: October 17, 2014, 05:06:47 pm »
Very cool. I linked it to the code page. Thanks for your interest in the Donkey Kong Code.

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #6 on: October 17, 2014, 08:05:25 pm »
Turns out I'm not the first person to find these tunes and voice clips. A homebrew Intellivision port already made use of 'em:

I might be the first person to have posted them anywhere in their original form, though.
« Last Edit: October 17, 2014, 08:07:18 pm by furrykef »
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #7 on: October 17, 2014, 08:28:44 pm »
Woo! The discovery made slashdot's front page. :)
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Offline LMDAVE

  • Spring Jumper
  • *
  • Posts: 639
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #8 on: October 17, 2014, 08:41:20 pm »
Hope you get your due credit, really is an awesome find
Donkey Kong (Arcade): 1,108,100

Donkey Kong 1-1: 12,900

http://twitch.tv/LMDAVE
Member for 11 Years DK 1.1M Point Scorer Blogger DK 1M Point Scorer DK Killscreener Former DK Level 1-1 World Record Holder Twitch Streamer

Offline marinomitch13

  • Spring Jumper
  • *
  • Posts: 1806
    • How to Play DK
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #9 on: October 17, 2014, 11:14:32 pm »
Great find!
"Thou hast made us for Thyself, and our heart is restless until it finds its rest in Thee." -Augustine, Confessions.
Member for 11 Years DK Killscreener Blogger Twitch Streamer

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #10 on: October 18, 2014, 02:54:29 am »
Now to tell the story of how I made this discovery. I make chiptunes, so as I was working with the Donkey Kong disassembly, the game's sound code got my curiosity as well. The game uses its own processor to handle music and most sound effects, so the sound code is completely separate from the main program and I had to start my disassembly from scratch. I'd never done assembly language for a microcontroller before, and I must say it's wonderfully weird compared to microprocessor ASM! I'm familiar with ASM for several different CPUs, but this isn't quite like any of those.

Anyway, when I started, I didn't have any particular aim other than finding out how the program worked. I found a few interesting things. For instance, you know that rapidly descending series of notes while Mario is spinning when he dies? I found out that's not stored as a series of notes, but generated mathematically.

Reverse engineering a program is a lot like stumbling around in the dark. You poke at random things to see what happens. Since the sound code is on a different CPU from the main program, I could do whatever I liked with it without it ever crashing the game or even affecting it (other than sound). Believe me, this made things much easier! So I spent a lot of time in MAME's debugger calling routines or changing registers to find out what they did. One of the routines would start playing random tunes or glitchy nonsense whenever I called it. Imagine my shock when it started playing music I'd never heard before!

Unfortunately, this was not enough. I could make it play hidden music, but I couldn't do it reliably. It took a while to decode what the routine was actually doing so I could make it play whatever I wanted. But eventually I did, so I was able to find all the hidden tunes and voice clips and be reasonably confident that there weren't any more.

So, like many great discoveries, this one was quite by accident.

(warning: this next paragraph is for technonerds only!)
By the way, if anyone wants to have a look at my disassembly of the sound code, you can find it in dkong-snd.asm here. This github repository I put up also contains a copy of the disassembly of the game's main program (that is, the gameplay stuff, not the sound stuff) in dkong.asm. This copy was taken from the wiki, but unlike the version on the wiki, this one has some preliminary effort put toward replacing raw offsets with labels. My intention at the moment is to keep the wiki's version for a "raw" disassembly that uses raw offsets and use github for a polished disassembly that looks like what the programmers at Ikegami and Nintendo might have written. But that's a subject for another thread...

(BTW, I ask that the disassembly of the sound code remain on github and not be added to the wiki. It would be messy having it in two places, and github still allows other people to contribute. Of course, a link to it on the wiki would be fine.)
« Last Edit: October 18, 2014, 06:34:50 am by furrykef »
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years

Donkey Kong Genius

  • Guest
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #11 on: October 18, 2014, 12:13:14 pm »
I will add the link to the wiki.

I can not guarantee that no one will add bits to the code on the wiki from your github link. No one person dictates the shape and form of the page. However, it should be noted that it is merely a commented code page. Other pages can be created on the wiki for that purpose in connection with the main commented article. If someone creates a new page and links this new wiki page to the main commented code that contains the github information, I will not delete it since the purpose of the Donkey Kong Wiki is to gather an encyclopedic database of all things pertaining to Donkey Kong. If it is about Donkey Kong, and it is added, it will remain in keeping with the purpose and intent of the wiki even if one individual had other plans to isolate information about Donkey Kong from the wiki. As it is, furrykef, you are the only person who has participated on the page presently so I see no conflict with your intent at this time.

I like the fact that you are taking interest in the Donkey Kong code. I am sure others feel the same when I say that we are curious to see if anything new will come of your investigations. Maybe you can finally put to rest the debate concerning Ross's claim to a fireball subroutine :P


Offline ChrisP

  • Spring Jumper
  • *
  • Posts: 1763
  • I'm going to jump next to your leg.
    • Donkey Blog
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #13 on: October 22, 2014, 10:16:02 pm »
Haha, note that Kotaku's article already has *double* the view count of their "New World Record" article about Robbie...

A couple of new sounds being discovered in the code was more interesting to people than a new world champion.

(This is another solid reminder that anybody who gets into classic gaming in hopes of attaining celebrity is in the wrong business.  :) )

Congrats, furry! Great work. This is truly cool.
« Last Edit: October 22, 2014, 10:18:36 pm by ChrisP »
http://donkeykongblog.blogspot.com

4 Quarters :-* - 800K Avg. Per Qtr. :o - No Restarts 8) - No Proof :'(

7/26/2013   Coin 35,946   710,800   18-1
7/28/2013   Coin 35,947   903,700   22-1
8/16/2013   Coin 35,948   694,100   17-6
8/17/2013   Coin 35,949   893,100   22-1

3,201,700: the $1 World Record?
Member for 11 Years DKJR Killscreener DK Masters - Rank D Blogger Twitch Streamer DK Killscreener CK Killscreener

Offline furrykef

  • Jr. Member
  • *
  • Posts: 25
    • Awards
Re: UNUSED MUSIC AND SOUND FOUND IN DONKEY KONG!!
« Reply #14 on: October 22, 2014, 11:18:42 pm »
I don't even keep track of who the current champion is. I love you guys, but this whole world record business is slightly alien to me. ^^;

(Though yes, I'm familiar with The King of Kong. Including its various simplifications and inaccuracies.)
I might never make it to a kill screen, but I found Donkey Kong's hidden music!
Member for 9 Years