<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ASM on guy@secdev.uk</title>
    <link>https://www.secdev.uk/blog/tags/asm/</link>
    <description>Recent content in ASM on guy@secdev.uk</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <copyright>Guy Dixon | guy@secdev.uk</copyright>
    <lastBuildDate>Sat, 28 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.secdev.uk/blog/tags/asm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Vintage Adventures - MOS 6502 - Part 2</title>
      <link>https://www.secdev.uk/blog/technology/2026-03-28-vintage-adventures-6502-part-2/</link>
      <pubDate>Sat, 28 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://www.secdev.uk/blog/technology/2026-03-28-vintage-adventures-6502-part-2/</guid>
      <description>&lt;p&gt;In Part 1 we covered the MOS 6502&amp;rsquo;s architecture, walked through its instruction set, and decoded a small test program by hand. That gave us the basic structure of a CPU emulator:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;while running:&#xA;    opcode = memory[PC]&#xA;    instruction = decode(opcode)&#xA;    instruction.execute(operands)&#xA;    PC += instruction.length&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The pseudocode is clean, but there are obvious pieces missing. We need to define the decode function, implement the execution logic for each instruction, and emulate both the memory and the registers. Time to turn that sketch into real code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vintage Adventures - MOS 6502 - Part 1</title>
      <link>https://www.secdev.uk/blog/technology/2026-03-21-vintage-adventures-6502-part-1/</link>
      <pubDate>Sat, 21 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://www.secdev.uk/blog/technology/2026-03-21-vintage-adventures-6502-part-1/</guid>
      <description>&lt;p&gt;This next set of posts are a bit of a distraction from security themes articles, and we&amp;rsquo;ll explore some vintage computer hardware.&lt;/p&gt;&#xA;&lt;p&gt;The MOS 6502 is a classic CPU that drove the home computer revolution in the late 1970s and early 1980s. Along with the Zilog Z80, it brought computing to the masses. The 6502 powered some of the most iconic machines of the era, the Apple II, the Commodore 64, the Atari 2600, and the British-built BBC Micro, among others. It even found its way into the original Nintendo Entertainment System (as the Ricoh 2A03, a modified 6502).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
