<?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-64 on Institute of Ineptitude</title><link>https://ineptitude.ca/tags/x86-64/</link><description>Recent content in X86-64 on Institute of Ineptitude</description><generator>Hugo -- 0.153.1</generator><language>en</language><lastBuildDate>Tue, 10 Dec 2024 21:49:28 -0700</lastBuildDate><atom:link href="https://ineptitude.ca/tags/x86-64/index.xml" rel="self" type="application/rss+xml"/><item><title>ASCII case bit twiddling</title><link>https://ineptitude.ca/writing/ascii-case-bit-twiddling/</link><pubDate>Tue, 10 Dec 2024 21:49:28 -0700</pubDate><guid>https://ineptitude.ca/writing/ascii-case-bit-twiddling/</guid><description>&lt;p&gt;If you pay a special sort of attention, you may notice that the
upper-case and lower-case alphabet characters on the ASCII table
are always exactly offset from each other by 32.&lt;/p&gt;
&lt;p&gt;For example, upper-case &lt;code&gt;A&lt;/code&gt; is &lt;code&gt;65&lt;/code&gt;, while the lowercase &lt;code&gt;a&lt;/code&gt; is &lt;code&gt;97&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;As such the way the binary place value works out, you can manipulate
the case of a character by setting or clearing the sixth bit&amp;hellip;
(2^5 = 32, we start counting bits and everything at 0, we&amp;rsquo;re
programmers!)&lt;/p&gt;
&lt;p&gt;Decimal &lt;code&gt;32&lt;/code&gt; expressed as hexadecimal is &lt;code&gt;0x20&lt;/code&gt; and expressed as
binary is &lt;code&gt;00100000&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Guess the number...</title><link>https://ineptitude.ca/writing/guess-the-number/</link><pubDate>Fri, 05 Apr 2024 00:00:00 +0000</pubDate><guid>https://ineptitude.ca/writing/guess-the-number/</guid><description>&lt;p&gt;A quick demonstration of how one can use a debugger to interactively inspect variables in a running program&amp;hellip;&lt;/p&gt;</description></item><item><title>Patching Binaries</title><link>https://ineptitude.ca/writing/patching-binaries/</link><pubDate>Sat, 13 Mar 2021 11:19:00 -0600</pubDate><guid>https://ineptitude.ca/writing/patching-binaries/</guid><description>&lt;h2 id="exercise-summary"&gt;Exercise Summary&lt;/h2&gt;
&lt;p&gt;The idea of this self-inflicted exercise was to see if I could
inspect and patch a binary to change the outcome of some conditional
code. In days of long past up I had found tutorials on how to patch
a binary to bypass copyright protection schemes. The type that would
ask a random question, where the answer found in a manual.&lt;/p&gt;
&lt;p&gt;You know, the one you would have had if the game wasn&amp;rsquo;t recieved
on bootleg floppy diskettes.&lt;/p&gt;</description></item></channel></rss>