<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=ND-100_addressing_modes</id>
	<title>ND-100 addressing modes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ndwiki.org/index.php?action=history&amp;feed=atom&amp;title=ND-100_addressing_modes"/>
	<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;action=history"/>
	<updated>2026-05-06T04:56:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2284&amp;oldid=prev</id>
		<title>TArntsen: Corrected B indirect indexed addressing description</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2284&amp;oldid=prev"/>
		<updated>2013-03-21T11:15:43Z</updated>

		<summary type="html">&lt;p&gt;Corrected B indirect indexed addressing description&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:15, 21 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l110&quot;&gt;Line 110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 110:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Example:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  STA ,X I *2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  STA ,X I &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,B &lt;/ins&gt;*2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First the contents of the memory two words after the instruction is read, then the contents of the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;X-&lt;/del&gt;register is added to that value. The resulting address is used for storing the contents of the A-register.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First the contents of the memory two words after the instruction is read, then the contents of the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;B &lt;/ins&gt;register is added to that value&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. The 16-bit value at the memory location pointed to by that result is added to the contents of the X register&lt;/ins&gt;. The resulting address is used for storing the contents of the A-register.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TArntsen</name></author>
	</entry>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2052&amp;oldid=prev</id>
		<title>TArntsen: argh, editing-on-phone error, fixed</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2052&amp;oldid=prev"/>
		<updated>2012-07-15T14:39:20Z</updated>

		<summary type="html">&lt;p&gt;argh, editing-on-phone error, fixed&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:39, 15 July 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;[[ND-100]]&amp;#039;&amp;#039;&amp;#039; series of computers have eight &amp;#039;&amp;#039;&amp;#039;addressing modes&amp;#039;&amp;#039;&amp;#039;. The addressing modes are the same in every CPU model.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;[[ND-100]]&amp;#039;&amp;#039;&amp;#039; series of computers have eight &amp;#039;&amp;#039;&amp;#039;addressing modes&amp;#039;&amp;#039;&amp;#039;. The addressing modes are the same in every CPU model.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. Combining &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;he &lt;/del&gt;three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. Combining &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The [[displacement]] is the lowest eight bits in the instruction and is used as a two&amp;#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The [[displacement]] is the lowest eight bits in the instruction and is used as a two&amp;#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TArntsen</name></author>
	</entry>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2051&amp;oldid=prev</id>
		<title>TArntsen: Minor rewording: combinating-&gt;combining</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=2051&amp;oldid=prev"/>
		<updated>2012-07-15T14:37:27Z</updated>

		<summary type="html">&lt;p&gt;Minor rewording: combinating-&amp;gt;combining&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:37, 15 July 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;[[ND-100]]&amp;#039;&amp;#039;&amp;#039; series of computers have eight &amp;#039;&amp;#039;&amp;#039;addressing modes&amp;#039;&amp;#039;&amp;#039;. The addressing modes are the same in every CPU model.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;[[ND-100]]&amp;#039;&amp;#039;&amp;#039; series of computers have eight &amp;#039;&amp;#039;&amp;#039;addressing modes&amp;#039;&amp;#039;&amp;#039;. The addressing modes are the same in every CPU model.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Combinating the &lt;/del&gt;three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Combining he &lt;/ins&gt;three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The [[displacement]] is the lowest eight bits in the instruction and is used as a two&amp;#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The [[displacement]] is the lowest eight bits in the instruction and is used as a two&amp;#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>TArntsen</name></author>
	</entry>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=1262&amp;oldid=prev</id>
		<title>Gandalf: Added a link and category</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=1262&amp;oldid=prev"/>
		<updated>2009-09-05T21:41:44Z</updated>

		<summary type="html">&lt;p&gt;Added a link and category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:41, 5 September 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. Combinating the three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. Combinating the three bits gives the eight different addressing modes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The displacement is the lowest eight bits in the instruction and is used as a two&#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;displacement&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;is the lowest eight bits in the instruction and is used as a two&#039;s complement to add to get the effective address.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The resulting address is a 16 bit word. To get the real 24 bit address used to access the physical memory the address is translated by the [[memory management system]]. The MMS system is using the normal [[page table]] or the [[alternate page table]] to translate the address to a physical address.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The resulting address is a 16 bit word. To get the real 24 bit address used to access the physical memory the address is translated by the [[memory management system]]. The MMS system is using the normal [[page table]] or the [[alternate page table]] to translate the address to a physical address.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*{{ND-doc|06.026.1|Page 62-70}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*{{ND-doc|06.026.1|Page 62-70}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:ND-100 instructions]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gandalf</name></author>
	</entry>
	<entry>
		<id>https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=1261&amp;oldid=prev</id>
		<title>Gandalf: Initial page</title>
		<link rel="alternate" type="text/html" href="https://www.ndwiki.org/index.php?title=ND-100_addressing_modes&amp;diff=1261&amp;oldid=prev"/>
		<updated>2009-09-05T21:20:45Z</updated>

		<summary type="html">&lt;p&gt;Initial page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;[[ND-100]]&amp;#039;&amp;#039;&amp;#039; series of computers have eight &amp;#039;&amp;#039;&amp;#039;addressing modes&amp;#039;&amp;#039;&amp;#039;. The addressing modes are the same in every CPU model.&lt;br /&gt;
Every instruction in the ND-100/110/120 CPU is made up of 16 bits. Five bits is op code, three bits the addressing mode and eight bits the displacement. Bit 8 is B relative addressing, bit 9 is indirect addressing and bit 10 is X relative addressing. Combinating the three bits gives the eight different addressing modes.&lt;br /&gt;
&lt;br /&gt;
The displacement is the lowest eight bits in the instruction and is used as a two&amp;#039;s complement to add to get the effective address.&lt;br /&gt;
&lt;br /&gt;
The resulting address is a 16 bit word. To get the real 24 bit address used to access the physical memory the address is translated by the [[memory management system]]. The MMS system is using the normal [[page table]] or the [[alternate page table]] to translate the address to a physical address.&lt;br /&gt;
&lt;br /&gt;
== Symbols used ==&lt;br /&gt;
&lt;br /&gt;
The following symbols are used for describing the different modes.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| ea || [[effective address]], the resulting word address&lt;br /&gt;
|-&lt;br /&gt;
| (P) || the contents of the program counter&lt;br /&gt;
|-&lt;br /&gt;
| () || contents of a register or memory location&lt;br /&gt;
|-&lt;br /&gt;
| d || displacement (bit 0-7 of the instruction) as a 2&amp;#039;s complement value&lt;br /&gt;
|-&lt;br /&gt;
| n || arbitrary address of a memory word&lt;br /&gt;
|-&lt;br /&gt;
| K || memory block base address pointer&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following is the mnemonics used to describe the addressing modes.&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| * || the contents of the program counter&lt;br /&gt;
|-&lt;br /&gt;
| ,B || address relative to B register (pre-indexed)&lt;br /&gt;
|-&lt;br /&gt;
| I || indirect address&lt;br /&gt;
|-&lt;br /&gt;
| ,X || address relative to X register (post-indexed)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== P relative addressing ==&lt;br /&gt;
P relative addressing have no mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=(P)+disp&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA *2&lt;br /&gt;
Stores the contents of A-register in the memory two words ahead of the instruction.&lt;br /&gt;
&lt;br /&gt;
== B relative addressing ==&lt;br /&gt;
B relative addressing have &amp;#039;&amp;#039;&amp;#039;,B&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=(B)+disp&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 LDA -4,B&lt;br /&gt;
Loads the contents of the memory word pointed on by B-4 into the A-register.&lt;br /&gt;
&lt;br /&gt;
== P indirect addressing ==&lt;br /&gt;
P indirect addressing have &amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=((P)+disp)&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA I *2&lt;br /&gt;
First it reads the word two positions after the instruction and then uses it as the address to store the contents of A-register into memory.&lt;br /&gt;
&lt;br /&gt;
== B indirect addressing ==&lt;br /&gt;
B indirect addressing have &amp;#039;&amp;#039;&amp;#039;,B&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=((B)+disp)&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA I 2,B&lt;br /&gt;
First it reads the word two positions after the memory position pointed on by B register and then uses it as the address to store the contents of A-register into memory.&lt;br /&gt;
&lt;br /&gt;
== X relative addressing ==&lt;br /&gt;
X relative addressing have &amp;#039;&amp;#039;&amp;#039;,X&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=(X)+disp&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA 2,X&lt;br /&gt;
The contents of the A-register is stored in the memory cell two words after the memory position pointed on by the X register.&lt;br /&gt;
&lt;br /&gt;
== B indexed addressing ==&lt;br /&gt;
B indexed addressing have &amp;#039;&amp;#039;&amp;#039;,B ,X&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=(B)+(X)+disp&lt;br /&gt;
&lt;br /&gt;
This addressing mode adds one extra micro cycle to the execution time.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA 2,B ,X&lt;br /&gt;
The contents of the A-register is stored in the memory cell two words after the memory position pointed on by the X+B registers.&lt;br /&gt;
&lt;br /&gt;
== P indirect indexed addressing ==&lt;br /&gt;
P indirect indexed addressing have &amp;#039;&amp;#039;&amp;#039;,X I&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=((P)+disp)+(X)&lt;br /&gt;
&lt;br /&gt;
This addressing mode adds one extra memory access to the execution time of the instruction.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA ,X I *2&lt;br /&gt;
First the contents of the memory two steps after the instruction is read, then the contents of the X-register is added to that value. The resulting address is used for storing the contents of the A-register.&lt;br /&gt;
&lt;br /&gt;
== B indirect indexed addressing ==&lt;br /&gt;
B indirect indexed addressing have &amp;#039;&amp;#039;&amp;#039;,X I ,B&amp;#039;&amp;#039;&amp;#039; as mnemonic representation.&lt;br /&gt;
&lt;br /&gt;
ea=((B)+disp)+(X)&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 STA ,X I *2&lt;br /&gt;
First the contents of the memory two words after the instruction is read, then the contents of the X-register is added to that value. The resulting address is used for storing the contents of the A-register.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
*{{ND-doc|06.026.1|Page 62-70}}&lt;/div&gt;</summary>
		<author><name>Gandalf</name></author>
	</entry>
</feed>