Request Membership
Categories
Posts By Month
Bloggers
Related Links
Input Validation RSS

Mystery of Donkey Kong Kill Level Solved

It was an integer overflow.

I guess it is never too late to fix a bug. Don Hodges used the old video game firmware and a MAME machine to debug and fix a problem which has kept expert Donkey Kong players from ever getting past level 22. If you have seen King of Kong you would know that one of the challenges of getting a high score is getting as many possible points before a software glitch causes the game to end abruptly at level 22. This is because the time is calculated incorrectly and there is not enough time to complete the level.

dkong_kill_screen_lvl_22_fixed

In his diagnosis, How High Can You Get, Don Hodges determines that the level counter is multiplied by 10 and then has 40 added to it which overflows a single byte (max is 255) value causing the time to be incorrectly calculated. Don then goes on to implement a fix. The article is a good read for low level code and arcade game junkies.

1 Comment »

[...] Mystery of Donkey Kong Kill Level Solved Fixing Donkey Kong buffer overflows allows continuing playing the game on MAME. Awesome. (tags: security) [...]

Pingback by links for 2009-06-18 (Jarrett House North) — June 18, 2009 @ 9:00 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

Powered by WordPress