<?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>Mos6526 on RETRO.MOE</title><link>https://retro.moe/tag/mos6526/</link><description>Recent content in Mos6526 on RETRO.MOE</description><image><title>RETRO.MOE</title><url>https://retro.moe/images/papermod-cover.png</url><link>https://retro.moe/images/papermod-cover.png</link></image><generator>Hugo -- 0.161.1</generator><language>en</language><copyright>Ricardo Quesada</copyright><lastBuildDate>Wed, 02 Oct 2019 15:51:34 +0000</lastBuildDate><atom:link href="https://retro.moe/tag/mos6526/feed.xml" rel="self" type="application/rss+xml"/><item><title>Commando disassembled - fully commented code</title><link>https://retro.moe/2019/10/02/commando-disassembled-fully-commented-code/</link><pubDate>Wed, 02 Oct 2019 15:51:34 +0000</pubDate><guid isPermaLink="false">http://retro.moe/?p=2224</guid><description>&lt;figure&gt;
&lt;img loading="lazy" src="https://user-content.gitlab-static.net/a81ba2eb9033ba9e3fc62303fbc37f5563420774/68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f6438776f6e45766a326d6355326b7032677374456d5a4e465655675a386d4756784e694254694850584c694543327463732d616176546d73796f556e776d386f4642617172376751724853756876466c32316758424d4456374d55516d56374668376c65664d4d5a5664643146734471474c3557785a347047703350764b4d6b2d70747954313233476c6f3d2d6e6f" width="384"/&gt;
&lt;/figure&gt;
&lt;p&gt;In order to
create &lt;a href="https://retro.moe/2019/09/29/commando-2084-a-game-for-the-commodore-64/"&gt;Commando 2084&lt;/a&gt;,
I had to disassemble Commando. My original intention was to patch what was only
needed and stop there. But I got carried away and I ended up analyzing and
commenting the entire Commando code.&lt;/p&gt;
&lt;p&gt;The commented code (that can be recompiled to generate the exact original
binary) is here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://gitlab.com/ricardoquesada/c64-commando-2084/tree/orig"&gt;https://gitlab.com/ricardoquesada/c64-commando-2084/tree/orig&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="findings---level-2"&gt;Findings - Level 2&lt;/h3&gt;
&lt;p&gt;Apparently, the original idea was to ship Commando with 4 levels instead of 3.
There is a lot of code/data that indicates that a &amp;ldquo;level 2&amp;rdquo; (the levels that are
shipped with Commando are level 0, 1 and 3) was in progress, or even finished.&lt;/p&gt;</description></item><item><title>Fixing the Commodore SX-64: Replacing the MOS 6526</title><link>https://retro.moe/2015/12/13/fixing-the-commodore-sx-64-replacing-the-mos-6526/</link><pubDate>Sun, 13 Dec 2015 08:28:26 +0000</pubDate><guid isPermaLink="false">http://retro.moe/?p=1220</guid><description>&lt;h3 id="mos-6526-the-cia-chip"&gt;MOS 6526: The CIA chip&lt;/h3&gt;
&lt;p&gt;You turn on your beloved SX-64 and you don&amp;rsquo;t see the blinking cursor. Don&amp;rsquo;t
panic. Most probably one of
the &lt;a href="https://en.wikipedia.org/wiki/MOS_Technology_CIA"&gt;CIA chips (MOS 6526)&lt;/a&gt;is
not working correctly.&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" src="https://lh3.googleusercontent.com/-MF1kSO83zr4/Vm0Vsppqc2I/AAAAAAABcwQ/b0jjYSaIl80/s400-Ic42/WP_20151212_001.jpg"&gt;
&lt;em&gt;No blinking cursor.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The Commodore 64 has two CIA chips. What you need to do is to replace the one
that controls the keyboard, the CIA 1. But if you don&amp;rsquo;t know which one is CIA 1
and which is CIA 2, then you can either replace both, or do trial-and-error, or
look at
the &lt;a href="http://personalpages.tds.net/~rcarlsen/cbm/sx64/SCHEMATICS/IO.gif"&gt;IO schematics&lt;/a&gt;(
hint: it is the one with the &lt;code&gt;UB3&lt;/code&gt; legend).&lt;/p&gt;</description></item></channel></rss>