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.

An interactive guide to x86-64 assembly – moving data

144 pointsby halb10 months ago

3 comments

Joker_vD10 months ago
&gt; When we (humans using Hindu-Arabic numerals) represent numbers, we write the most significant value first, and continue in descending order.<p>Funny trivia: while the Arabs wrote the numbers exactly as we do, they actually wrote them in the opposite order, the least significant digit first, and continued in ascending order, because Arabic script is actually written right-to-left. We the Europeans borrowed the notation as it looked when finished being written, so it had the unfortunate side effect of switching to the unnatural big-endian order.
评论 #41038218 未加载
评论 #41035272 未加载
评论 #41035008 未加载
TedHerman10 months ago
So back in the 1970s I had a job working on an IBM mainframe computer. Not multicore, no cache or instruction pipeline that I was aware of. A coworker had the idea of writing a timer interrupt to see what kind of instruction was executing at the instance of the interrupt; eventually it accumulated tens of thousand of samples. What kind of instruction was most frequent, was it addition, multiplication, bit-logic, or what? If I remember correctly, at least 90% of the samples were moving data from one place to another (memory-to-memory, register to memory, memory to register, register to register). Computers don&#x27;t &quot;calculate&quot; most of the time the way I had previously thought. They mostly just rearrange bits, copying this to that.
smartis281210 months ago
As somebody how tries to get into Assembly, I love this so much.<p>Thank you!