More Ramblings from a Los Angeles Programmer

April 12, 2007

0x42 is not the answer!

Filed under: coding — Josh DeWald @ 6:16 pm

Quick update. Finally managed to get Super Mario Brothers to start on the NES emulator without having cheat in the debugger. Turns out that I had misread some documentation and so I was sending hex 0x42 to represented the unconnected controller #2. After running through the debugger over and over I’m pretty sure it was getting interpreted as every key being pressed on that second controller. In any case, it was definitely interfering with the START key detection (since the actual game played fine once started).

Moral of the story is the 42 is not always the answer especially if, as a co-worker said today, you’re not asking the right question.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: