TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Cycle-accurate Nintendo NES emulator in ~1000 lines of code

20 pointsby andreaorruover 8 years ago

4 comments

Koshkinover 8 years ago
This is one example of how powerful and expressive C++ can be in the hands of the right person. I love (plain) C for its openness and the apparent ease of use but keep being amazed at how much more powerful as a language C++ is - to the point that C starts looking like a children's toy tool that should be abandoned as soon as the hand is strong enough to hold the real one.
评论 #13031700 未加载
Sephiroth87over 8 years ago
I&#x27;m not sure if this can be technically defined as cycle accurate, since cpu instructions are still executed atomically, instead of executing each instruction cycle independently... I guess the end result is what matters and not the actual implementation?<p>EDIT: I suck at c++
评论 #13031129 未加载
closetheworldover 8 years ago
This is <i>insanely</i> good. I remember studying the code of other NES emulators and all of them easily passed the 10k lines mark. Makes you wonder how much repeated code is there.
评论 #13031946 未加载
loboto3over 8 years ago
Such pregunta. Very clever. Many condense. Such switch. WOW. So emulator.