<?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>Assembly on Institute of Ineptitude</title><link>https://ineptitude.ca/tags/assembly/</link><description>Recent content in Assembly on Institute of Ineptitude</description><generator>Hugo -- 0.153.1</generator><language>en</language><lastBuildDate>Tue, 11 Nov 2025 14:57:43 -0700</lastBuildDate><atom:link href="https://ineptitude.ca/tags/assembly/index.xml" rel="self" type="application/rss+xml"/><item><title>Assemble an MS-DOS .COM binary with DEBUG.EXE</title><link>https://ineptitude.ca/writing/assemble-dos-com/</link><pubDate>Tue, 11 Nov 2025 14:57:43 -0700</pubDate><guid>https://ineptitude.ca/writing/assemble-dos-com/</guid><description>&lt;p&gt;&lt;a href="https://www.youtube.com/The8BitGuy"&gt;The 8-Bit Guy&lt;/a&gt; has a video
where he &lt;a href="https://www.youtube.com/watch?v=HWpi9n2H3kE"&gt;demonstrates the assembler built right into the monitor
ROM on a C64&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This fascinated me and made me wonder&amp;hellip; If I was stuck on an old MS-DOS machine and wanted to assemble a binary&amp;hellip; Could I do it? Byte by byte? With what tool? Those of us stuck with &amp;ldquo;IBM compatible&amp;rdquo; PCs didn&amp;rsquo;t have no fancy monitor ROMs.&lt;/p&gt;
&lt;p&gt;Turns out MS-DOS&amp;rsquo; &lt;code&gt;DEBUG.EXE&lt;/code&gt; is and was entirely up for the job.&lt;/p&gt;</description></item><item><title>ARM code for IPv4 Subnetting</title><link>https://ineptitude.ca/writing/arm-subnet/</link><pubDate>Mon, 30 Dec 2024 00:00:00 +0000</pubDate><guid>https://ineptitude.ca/writing/arm-subnet/</guid><description>&lt;p&gt;ARM ASM code to find the network of an IP&lt;/p&gt;</description></item><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>