<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>X86 on Tech News Feed</title>
    <link>https://news.dhphong.com/tags/x86/</link>
    <description>Recent content in X86 on Tech News Feed</description>
    <generator>Hugo -- 0.131.0</generator>
    <language>vi</language>
    <lastBuildDate>Wed, 22 Apr 2026 13:04:55 +0700</lastBuildDate>
    <atom:link href="https://news.dhphong.com/tags/x86/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Hacker News] XOR&#39;ing a register with itself is the idiom for zeroing it out. Why not sub?</title>
      <link>https://news.dhphong.com/posts/2026-04-22-xor-register-zeroing-why-not-sub/</link>
      <pubDate>Wed, 22 Apr 2026 13:04:55 +0700</pubDate>
      <guid>https://news.dhphong.com/posts/2026-04-22-xor-register-zeroing-why-not-sub/</guid>
      <description>Nguồn: The Old New Thing - Microsoft Dev Blogs
Tóm tắt Raymond Chen trong blog &amp;ldquo;The Old New Thing&amp;rdquo; giải thích tại sao xor eax, eax là idiom chuẩn để zeroing một register trong assembly x86, thay vì dùng sub eax, eax — dù cả hai đều cho kết quả bằng 0. Về mặt toán học, eax XOR eax = 0 và eax - eax = 0 là tương đương, nhưng CPU xử lý chúng khác nhau ở cấp độ vi kiến trúc.</description>
    </item>
  </channel>
</rss>
