<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=Bank_switching</id>
	<title>Bank switching - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=Bank_switching"/>
	<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=Bank_switching&amp;action=history"/>
	<updated>2026-11-12T18:24:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=24645&amp;oldid=prev</id>
		<title>Jnc: +alt name</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=24645&amp;oldid=prev"/>
		<updated>2021-11-07T13:36:00Z</updated>

		<summary type="html">&lt;p&gt;+alt name&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 13:36, 7 November 2021&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; 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;&#039;&#039;&#039;Bank switching&#039;&#039;&#039; is a form of [[memory management]], but with a different purpose from most other forms of memory management (such as the early [[base and bounds]] mechanism). It is generally not intended to either i) prevent one [[user]] from interfering with another (in a [[multi-tasking|multi-programming]] system), or ii) hide the real [[address]]es a program is occupying in [[main memory]] (instead of providing [[virtual address]]es, so that the program appears to always be in the same location, every time it is run).&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;&#039;&#039;&#039;Bank switching&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(sometimes called &#039;&#039;&#039;bank selection&#039;&#039;&#039;) &lt;/ins&gt;is a form of [[memory management]], but with a different purpose from most other forms of memory management (such as the early [[base and bounds]] mechanism). It is generally not intended to either i) prevent one [[user]] from interfering with another (in a [[multi-tasking|multi-programming]] system), or ii) hide the real [[address]]es a program is occupying in [[main memory]] (instead of providing [[virtual address]]es, so that the program appears to always be in the same location, every time it is run).&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;Rather, it is most commonly found in machines whose [[Central Processing Unit|CPU]] [[architecture]] provides a limited [[address space]] - less than the amount of real memory which it is desirable to have on the machine. This was a common problem in early machines, whose designers often failed to correctly foresee either the future economics of memory, or the demand for it from software. To be fair, though, it&amp;#039;s not a trivial problem; supporting longer addresses (needed for more memory) has costs (e.g. needing longer [[instruction]]s and [[register]]s), which are incurred from the start of the design&amp;#039;s lifetime; whereas the benefits are only received later on.&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;Rather, it is most commonly found in machines whose [[Central Processing Unit|CPU]] [[architecture]] provides a limited [[address space]] - less than the amount of real memory which it is desirable to have on the machine. This was a common problem in early machines, whose designers often failed to correctly foresee either the future economics of memory, or the demand for it from software. To be fair, though, it&amp;#039;s not a trivial problem; supporting longer addresses (needed for more memory) has costs (e.g. needing longer [[instruction]]s and [[register]]s), which are incurred from the start of the design&amp;#039;s lifetime; whereas the benefits are only received later on.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-wiki_:diff:1.41:old-24156:rev-24645:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jnc</name></author>
	</entry>
	<entry>
		<id>https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=24156&amp;oldid=prev</id>
		<title>Jnc: link &#039;address space&#039;</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=24156&amp;oldid=prev"/>
		<updated>2021-09-18T23:44:51Z</updated>

		<summary type="html">&lt;p&gt;link &amp;#039;address space&amp;#039;&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 23:44, 18 September 2021&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-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;Rather, it is most commonly found in machines whose [[Central Processing Unit|CPU]] [[architecture]] provides a limited [[address space]] - less than the amount of real memory which it is desirable to have on the machine. This was a common problem in early machines, whose designers often failed to correctly foresee either the future economics of memory, or the demand for it from software. To be fair, though, it&amp;#039;s not a trivial problem; supporting longer addresses (needed for more memory) has costs (e.g. needing longer [[instruction]]s and [[register]]s), which are incurred from the start of the design&amp;#039;s lifetime; whereas the benefits are only received later on.&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;Rather, it is most commonly found in machines whose [[Central Processing Unit|CPU]] [[architecture]] provides a limited [[address space]] - less than the amount of real memory which it is desirable to have on the machine. This was a common problem in early machines, whose designers often failed to correctly foresee either the future economics of memory, or the demand for it from software. To be fair, though, it&amp;#039;s not a trivial problem; supporting longer addresses (needed for more memory) has costs (e.g. needing longer [[instruction]]s and [[register]]s), which are incurred from the start of the design&amp;#039;s lifetime; whereas the benefits are only received later on.&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;In bank switching, the machine&#039;s main memory is divided into &#039;banks&#039; (hence the name), each usually the size of the machine&#039;s basic address space. The running program uses the current bank, until a special operation is used to switch to a different bank. (In some systems, instructions are fetched from one bank, and data from a potentially different bank.)&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;In bank switching, the machine&#039;s main memory is divided into &#039;banks&#039; (hence the name), each usually the size of the machine&#039;s basic &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;address space&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;. The running program uses the current bank, until a special operation is used to switch to a different bank. (In some systems, instructions are fetched from one bank, and data from a potentially different bank.)&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;A variety of low-level mechanisms are possible to achieve this. Perhaps the most common is to have a &amp;#039;current bank&amp;#039; register (usually in the CPU; if the current bank can be different for instructions and data, there would be two such registers). A current bank register can have a new value loaded into it either explicitly (perhaps by a special instruction), or implicitly. An example of the latter is on machines which have main memory [[word]]s, and registers, which are larger than the machine&amp;#039;s basic address: use of a register&amp;#039;s, or memory word&amp;#039;s, contents which are not zero in the high-order bits (above the bits needed to hold the basic address) as the address for a memory operation causes the current bank register to be loaded with those high-order bits, as a side-effect of the operation. On machines which have separate current bank registers for instructions and data, operations like [[jump]]s would load the current instruction bank register, whereas normal data references would load the other.&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;A variety of low-level mechanisms are possible to achieve this. Perhaps the most common is to have a &amp;#039;current bank&amp;#039; register (usually in the CPU; if the current bank can be different for instructions and data, there would be two such registers). A current bank register can have a new value loaded into it either explicitly (perhaps by a special instruction), or implicitly. An example of the latter is on machines which have main memory [[word]]s, and registers, which are larger than the machine&amp;#039;s basic address: use of a register&amp;#039;s, or memory word&amp;#039;s, contents which are not zero in the high-order bits (above the bits needed to hold the basic address) as the address for a memory operation causes the current bank register to be loaded with those high-order bits, as a side-effect of the operation. On machines which have separate current bank registers for instructions and data, operations like [[jump]]s would load the current instruction bank register, whereas normal data references would load the other.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-wiki_:diff:1.41:old-23653:rev-24156:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jnc</name></author>
	</entry>
	<entry>
		<id>https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=23653&amp;oldid=prev</id>
		<title>Jnc: An OK start</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=Bank_switching&amp;diff=23653&amp;oldid=prev"/>
		<updated>2021-05-15T15:56:41Z</updated>

		<summary type="html">&lt;p&gt;An OK start&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Bank switching&amp;#039;&amp;#039;&amp;#039; is a form of [[memory management]], but with a different purpose from most other forms of memory management (such as the early [[base and bounds]] mechanism). It is generally not intended to either i) prevent one [[user]] from interfering with another (in a [[multi-tasking|multi-programming]] system), or ii) hide the real [[address]]es a program is occupying in [[main memory]] (instead of providing [[virtual address]]es, so that the program appears to always be in the same location, every time it is run).&lt;br /&gt;
&lt;br /&gt;
Rather, it is most commonly found in machines whose [[Central Processing Unit|CPU]] [[architecture]] provides a limited [[address space]] - less than the amount of real memory which it is desirable to have on the machine. This was a common problem in early machines, whose designers often failed to correctly foresee either the future economics of memory, or the demand for it from software. To be fair, though, it&amp;#039;s not a trivial problem; supporting longer addresses (needed for more memory) has costs (e.g. needing longer [[instruction]]s and [[register]]s), which are incurred from the start of the design&amp;#039;s lifetime; whereas the benefits are only received later on.&lt;br /&gt;
&lt;br /&gt;
In bank switching, the machine&amp;#039;s main memory is divided into &amp;#039;banks&amp;#039; (hence the name), each usually the size of the machine&amp;#039;s basic address space. The running program uses the current bank, until a special operation is used to switch to a different bank. (In some systems, instructions are fetched from one bank, and data from a potentially different bank.)&lt;br /&gt;
&lt;br /&gt;
A variety of low-level mechanisms are possible to achieve this. Perhaps the most common is to have a &amp;#039;current bank&amp;#039; register (usually in the CPU; if the current bank can be different for instructions and data, there would be two such registers). A current bank register can have a new value loaded into it either explicitly (perhaps by a special instruction), or implicitly. An example of the latter is on machines which have main memory [[word]]s, and registers, which are larger than the machine&amp;#039;s basic address: use of a register&amp;#039;s, or memory word&amp;#039;s, contents which are not zero in the high-order bits (above the bits needed to hold the basic address) as the address for a memory operation causes the current bank register to be loaded with those high-order bits, as a side-effect of the operation. On machines which have separate current bank registers for instructions and data, operations like [[jump]]s would load the current instruction bank register, whereas normal data references would load the other.&lt;br /&gt;
&lt;br /&gt;
Other mechanisms are also possible; for example, memory banks could be disabled, so that only the current bank can respond to memory operations. (This approach would avoid needing to modify the CPU&amp;lt;-&amp;gt;memory [[bus]] to have more address bits.)&lt;br /&gt;
&lt;br /&gt;
[[Category: Computer Basics]]&lt;/div&gt;</summary>
		<author><name>Jnc</name></author>
	</entry>
</feed>