Building an NES Emulator

Programmer Michael Fogleman recently built
 his own emulator for the original Nintendo
Entertainment System. He's now put up a
post sharing many technical insights he learned
 along the way. For example: "The NES used
the MOS 6502 (at 1.79 MHz) as its CPU.

The 6502 is an 8-bit microprocessor that was
designed in 1975. ... The 6502 had no multiply
 or divide instructions. And, of course, no floating
 point. There was a BCD Binary Coded Decimal
mode but this was disabled in the NES version of
the chip—possibly due to patent concerns. The
 6502 had a 256-byte stack with no overflow
detection. The 6502 had 151 opcodes of a possible 256.
 The remaining 105 values are illegal / undocumented
opcodes. Many of them crash the processor.




But some of them perform possibly useful results by
 coincidence. As such, many of these have been given
 names based on what they do." It's an interesting look
 at how software and hardware interacted back then,
 and what it takes to emulate that in modern times.
Fogleman released the source code on GitHub.
Related Posts:
  • Web Hacking - Attacks And Defense The early Web storefronts were designed by using scripting languages such as Perl, running on a Web server, and interacting with flat files instead of databases. The systems were heterogeneous; that is, each component… Read More
  • Nokia x-launched Nokia x 5 megapixel camera phone launched in india  nokia x to launch in march as part of asha range according to a recent report by go android, the nokia x will join nokia s asha range in india in march. Nokia… Read More
  • Why classified site needed New hampshire skilled trades/artisan jobs classifieds - craigslist how are gemstones  classified this is why two different gemstones may have the same size but different  weights and vice versa -- a one carat round… Read More
  • Internet Speed Tester Test your broadband connection quality and speed try megapath speed test plus and see if your connection can support voip and other net applications. Internet speed and performance test by toast.net this speed test will id… Read More
  • Amazon phone-Six cameras  KGI Securities analyst Ming-Chi Kuo predicted in a note to clients that Amazon -US will launch its own brand smartphone in 3-6 months, using the same hardware strategy as used for its e-reader and tablet. For thos… Read More
  • Android 4.3 for Sony Xperia    Apparently Sony has been working on Android 4.3 Jelly Bean firmware update and it will soon begin rolling out. The first country to get it should be France as the SFR carrier has already approved the ROM re… Read More
  • Top CAR INSURANCE QUOTES TOP CAR INSURANCE QUOTES … Read More
  • android-security-apps Which android security apps are the most effective  today, much of  the world s business is done over mobile phones and tablets from  online banking to talking to clients, it would be tough to do business… Read More
  • LG-4G   Android 4.1 Jelly Bean OS With fast load times and the Google Now personal assistant built in, this operating system helps you manage your day-to-day activities. View live traffic and weather reports and find y… Read More
  • Google packs-new gaming features Google took a big step over the weekend to address problems with in-game  purchases, but that's not all that the company has in store for game developers this week. As the annual Game Developers Conference ki… Read More
  • LG Optimus LG has begun rolling out the Android 4.4 KitKat firmware update for LG Optimus G Pro.  The first market to get it is LG's homeland - South Korea. The update is available on two of the three Korean telecoms - SKT an… Read More
  • Galaxy S5 pricing-AT&T AT&T has said the pricing and availability of the Samsung Galaxy S5 You can also opt for the AT&T Next plans - in that case the Galaxy S5 comes at $25  per month on AT&T Next 18 or $32.5/month with AT… Read More
  • Most poisonous snakes Most poisonous snakes … Read More
  • HTC looking to smartphone market HTC has big plans, and most of them are probably riding on the success of the new HTC One, aka the M8. Reception to the new device has been good, so HTC's projections may very well come to fruition. Peter Chou, CEO and … Read More
  • Work from home-online Work from home business opportunities made easy  working from home is a huge dream for a lot of people for many different reasons no matter the reason, finding a free work from home job can be time consuming. … Read More