Irregular Expressions

May 21 2010   1:06PM GMT

Happy B-Day PacMan



Posted by: Dan O'Connor
Tags:
bit
byte
pacman
rollover

Tomorrow PacMan will be 30 years young and still played.

If you have seen google today you will be able to play a version in the graphic!

One of the things I found most interesting is the level 256 bug in the pacman game.  The level you are playing is stored in a single byte ( 1 byte = 8 bits = 255 Dec).  So what happens when you finish level 255?  The byte rolls over of course to a zero and that does not play so well with the programming and you end up with this.

http://en.wikipedia.org/wiki/Pac-Man#Split-screen

You can get a longer explanation of what happens at that link.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: