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.

Writing a lunar lander game for an actual lunar lander

151 pointsby david-givenalmost 6 years ago

6 comments

azalemethalmost 6 years ago
Wow. Seriously impressive -- both to see the limitations that smart people worked within while taking mankind off this rock, but also hats off to some excellent nerdery.<p>&gt;&quot;Division. Arrgh. The AGC does have hardware division (and multiplication), but it’s strictly limited to only being able to compute x&#x2F;y when |x|&gt;|y|. Anything else, you get garbage, including in the y=x case. This hit me several times and trying to deal with all the sign issues, combined with the 1s-complement sign issues above, was really painful.&quot;<p>Not being expert in slightly outdated processor architectures (1s compliment!), might someone more expert than I be able to tell me _why_ this is the case and was a good design decision? It seems like a potential way for unexpected sensor data to bite you in the arse...
评论 #20489065 未加载
评论 #20490679 未加载
评论 #20489114 未加载
david-givenalmost 6 years ago
Hello, author here.<p>It&#x27;s a surprisingly modern-ish system, in many ways, and surprisingly weird in lots of other ways. One thing which really surprised me was a complete lack of pointer support: I managed to bodge the look-up-table instruction (which evaluates its argument and adds the result to the next instruction to be executed) to do pointer dereferences instead (INDEX ptr; TC 0). And, luckily, I found a way to make the assembler emit an address as a literal value, which it really didn&#x27;t want to do.<p>It&#x27;s a shame the address space is so small (only 12 bits!) or you could totally port real software to this...
评论 #20492372 未加载
yummybearalmost 6 years ago
Hm - I keep getting a 1202 program alert when hovering near the surface.
评论 #20490849 未加载
hanniabualmost 6 years ago
I think that&#x27;s the longest non-loop Youtube video I&#x27;ve ever seen.
评论 #20490276 未加载
djmipsalmost 6 years ago
I thought about this myself and it&#x27;s really cool to see someone follow through on such a whimsical project. One consideration is that the is already a great lunar lander game for this system!
piadodjanhoalmost 6 years ago
Does anyone know of any FPGA implementation?
评论 #20489294 未加载