<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Getting_started</id>
	<title>Getting started - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Getting_started"/>
	<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;action=history"/>
	<updated>2026-05-13T19:03:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13690&amp;oldid=prev</id>
		<title>&gt;Spiny at 12:03, 29 November 2016</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13690&amp;oldid=prev"/>
		<updated>2016-11-29T12:03:14Z</updated>

		<summary type="html">&lt;p&gt;&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 08:03, 29 November 2016&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-l247&quot;&gt;Line 247:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 247:&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;Back to [[ASM_Tutorial]]&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;Back to [[ASM_Tutorial]]&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;[[Category:Tutorials by John Cove aka Tronic of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EfFeCt&lt;/del&gt;]]&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;[[Category:Tutorials by John Cove aka Tronic of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Effect&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Spiny</name></author>
	</entry>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13689&amp;oldid=prev</id>
		<title>&gt;Wongck at 15:27, 12 October 2011</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13689&amp;oldid=prev"/>
		<updated>2011-10-12T15:27:45Z</updated>

		<summary type="html">&lt;p&gt;&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:27, 12 October 2011&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-l247&quot;&gt;Line 247:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 247:&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;Back to [[ASM_Tutorial]]&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;Back to [[ASM_Tutorial]]&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;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Programming&lt;/del&gt;]]&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;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tutorials by John Cove aka Tronic of EfFeCt&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Wongck</name></author>
	</entry>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13688&amp;oldid=prev</id>
		<title>&gt;Silver Surfer: Added category</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13688&amp;oldid=prev"/>
		<updated>2009-05-02T20:36:48Z</updated>

		<summary type="html">&lt;p&gt;Added 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 16:36, 2 May 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-l247&quot;&gt;Line 247:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 247:&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;Back to [[ASM_Tutorial]]&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;Back to [[ASM_Tutorial]]&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:Programming]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Silver Surfer</name></author>
	</entry>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13687&amp;oldid=prev</id>
		<title>&gt;Zorro 2 at 15:09, 2 October 2006</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13687&amp;oldid=prev"/>
		<updated>2006-10-02T15:09:42Z</updated>

		<summary type="html">&lt;p&gt;&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:09, 2 October 2006&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-l246&quot;&gt;Line 246:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 246:&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;&amp;lt;/pre&amp;gt;&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;&amp;lt;/pre&amp;gt;&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;Back to [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Programming&lt;/del&gt;]]&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;Back to [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ASM_Tutorial&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Zorro 2</name></author>
	</entry>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13686&amp;oldid=prev</id>
		<title>&gt;Zorro 2 at 15:08, 2 October 2006</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Getting_started&amp;diff=13686&amp;oldid=prev"/>
		<updated>2006-10-02T15:08:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
                     Assembly language, in Devpac, Tutorial&lt;br /&gt;
&lt;br /&gt;
                                       by&lt;br /&gt;
&lt;br /&gt;
                          John Cove (Tronic of EfFeCt)&lt;br /&gt;
&lt;br /&gt;
                                     for&lt;br /&gt;
&lt;br /&gt;
                                    ICTARI&lt;br /&gt;
&lt;br /&gt;
                       Series 1, part 1, Getting started&lt;br /&gt;
&lt;br /&gt;
     ----------------------------------------------------------------------&lt;br /&gt;
     In the first part I am going  to tackle very simple but very necessary&lt;br /&gt;
     things  like  supervisor  mode,   exits,   colours,   move  and  movem&lt;br /&gt;
     commands...&lt;br /&gt;
&lt;br /&gt;
       _____________________________________________&lt;br /&gt;
       Section 1.1 - Supervisor mode using the -(sp)&lt;br /&gt;
       Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿&lt;br /&gt;
&lt;br /&gt;
     Here is the very standard routine to &amp;quot;get your machine into supervisor&lt;br /&gt;
     mode&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
     You are able to add things  before  the following routine to calculate&lt;br /&gt;
     how much memory you have, etc, but I will not go into this. Also, some&lt;br /&gt;
     routines do not need supervisor mode to run, but more about his later.&lt;br /&gt;
&lt;br /&gt;
       Here is how to enter supervisor mode:&lt;br /&gt;
&lt;br /&gt;
     --------------------------------------------------------------------&lt;br /&gt;
     clr.l  -(sp)                                           ...  line 1.1&lt;br /&gt;
     move.w #$20,-(sp)                                      ...  line 1.2&lt;br /&gt;
     trap   #1                                              ...  line 1.3&lt;br /&gt;
     addq.l #6,sp                                           ...  line 1.4&lt;br /&gt;
     --------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
     At this point (after line 4) you  are  able  to save the value in your&lt;br /&gt;
     stack so you can restore the value  when you end your program but more&lt;br /&gt;
     about that later.&lt;br /&gt;
&lt;br /&gt;
     You are now in supervisor mode!!   You  can  now play around with  the&lt;br /&gt;
     colours, hertz, CPU (!) etc....&lt;br /&gt;
&lt;br /&gt;
     The following piece of code is how  you end your programs, i.e. to end&lt;br /&gt;
     supervisor mode  and  return  control  to  the  C(entral) P(rocessing)&lt;br /&gt;
     U(nit).&lt;br /&gt;
&lt;br /&gt;
     ----------------------------------------------------------------------&lt;br /&gt;
     clr.l -(sp)                                             ... line 3.1&lt;br /&gt;
     trap  #1                                                ... line 3.2&lt;br /&gt;
     ----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
     This will return the  control  to  the  CPU  and  effectively end your&lt;br /&gt;
     program!!!&lt;br /&gt;
&lt;br /&gt;
     So if you were to add  the  previous  bits  of code together, all that&lt;br /&gt;
     would happen is, you would simply  return  to Devpac and nothing would&lt;br /&gt;
     change or have happened!!!&lt;br /&gt;
&lt;br /&gt;
     It is surprising that most  people,  who  use  68000  to do intros and&lt;br /&gt;
     people who want to figure out 68000 do not know about this!!&lt;br /&gt;
&lt;br /&gt;
       ___________________________________________________________&lt;br /&gt;
       Section 1.2 - Colour, using the move.w and movem.l commands&lt;br /&gt;
       Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿Ã¿&lt;br /&gt;
&lt;br /&gt;
     Right, first off I will list the pitiful 16 colour registers:-&lt;br /&gt;
&lt;br /&gt;
                $ffff8240       -       The background colour&lt;br /&gt;
                $ffff8242       -       Colour 2&lt;br /&gt;
                $ffff8244       -       Colour 3&lt;br /&gt;
                $ffff8246       -       Colour 4&lt;br /&gt;
                $ffff8248       -       Colour 5&lt;br /&gt;
                $ffff824a       -       Colour 6&lt;br /&gt;
                $ffff824c       -       Colour 7&lt;br /&gt;
                $ffff824e       -       Colour 8&lt;br /&gt;
                $ffff8250       -       Colour 9&lt;br /&gt;
                $ffff8252       -       Colour 10&lt;br /&gt;
                $ffff8254       -       Colour 11&lt;br /&gt;
                $ffff8256       -       Colour 12&lt;br /&gt;
                $ffff8258       -       Colour 13&lt;br /&gt;
                $ffff825a       -       Colour 14&lt;br /&gt;
                $ffff825c       -       Colour 15&lt;br /&gt;
                $ffff825e       -       Background colour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       Now I will list the simple colour palettes:-&lt;br /&gt;
&lt;br /&gt;
                     $000       -       Black&lt;br /&gt;
                     $001       -       Dark Blue&lt;br /&gt;
                     $007       -       Light Blue&lt;br /&gt;
                     $010       -       Dark Green&lt;br /&gt;
                     $070       -       Light Green&lt;br /&gt;
                     $110       -       Dark Yellow&lt;br /&gt;
                     $770       -       Light Yellow&lt;br /&gt;
                     $100       -       Dark Red&lt;br /&gt;
                     $700       -       Light Red&lt;br /&gt;
                     $101       -       Dark Purple&lt;br /&gt;
                     $707       -       Light Purple&lt;br /&gt;
                     $011       -       Dark Cyan&lt;br /&gt;
                     $077       -       Light Cyan&lt;br /&gt;
                     $111       -       Grey ... Scale 1&lt;br /&gt;
                     $222       -       Grey ... Scale 2&lt;br /&gt;
                     $333       -       Grey ... Scale 3&lt;br /&gt;
                     $444       -       Grey ... Scale 4&lt;br /&gt;
                     $555       -       Grey ... Scale 5&lt;br /&gt;
                     $666       -       Grey ... Scale 6&lt;br /&gt;
                     $777       -       White&lt;br /&gt;
&lt;br /&gt;
                     $704       -       Magenta (in red/purple scale)&lt;br /&gt;
&lt;br /&gt;
     So, if you wanted to  change  the  background  colour to red, then you&lt;br /&gt;
     would  write the following line:-&lt;br /&gt;
&lt;br /&gt;
                        move.w  $700,$ffff8240.w&lt;br /&gt;
                        ||||||  |||| |||||||||||&lt;br /&gt;
                        111111  2222 33333333333&lt;br /&gt;
&lt;br /&gt;
     Sequence  one is the move command  that  will effectively move what is&lt;br /&gt;
     defined in sequence two, and implement it into sequence three!!  Yes??&lt;br /&gt;
     So, sequence one is the move command, sequence two is the data you are&lt;br /&gt;
     moving to sequence three, and sequence  three is the background colour&lt;br /&gt;
     register,or what you want to be changed  by what is in sequence two!!!&lt;br /&gt;
     Easy really!!!&lt;br /&gt;
&lt;br /&gt;
     So, you can change sequence two,  for  different colours and  you  can&lt;br /&gt;
     change sequence three for other colour registers!!   You can also move&lt;br /&gt;
     sequence two into a data bank,  so  you  can use it, for restoring, or&lt;br /&gt;
     whatever, later on...&lt;br /&gt;
&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
        program start - for example SUPERVISOR MODE&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
&lt;br /&gt;
        move.w  $700,red_colour_bank&lt;br /&gt;
&lt;br /&gt;
        =======&lt;br /&gt;
        program&lt;br /&gt;
        =======&lt;br /&gt;
&lt;br /&gt;
        move.w  red_colour_bank,$ffff8240.w&lt;br /&gt;
&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
        program end - for example clr.l -(sp) ... trap #1&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
&lt;br /&gt;
       red_colour_bank      dc.w    0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     Now it gets a little more  complicated.  You  are moving $700 into the&lt;br /&gt;
     data bank called  red_colour_bank,  which  incidentally  you  can call&lt;br /&gt;
     whatever  you   wanted,  but  you  MUST  define  what  kind  of  store&lt;br /&gt;
     red_colour_bank  is!!!!   For  example :-&lt;br /&gt;
&lt;br /&gt;
       you are using a &amp;quot;move.w&amp;quot; command, so  the  bank MUST be defined as a&lt;br /&gt;
     &amp;quot;dc.w&amp;quot;....&lt;br /&gt;
&lt;br /&gt;
     You get different  kinds  of  stores,  they  are  &amp;quot;dc.w&amp;quot;,  &amp;quot;dc.b&amp;quot;  and&lt;br /&gt;
     &amp;quot;dc.l&amp;quot;, plus the &amp;quot;dc.b&amp;quot; and others which  I will go into later!!   You&lt;br /&gt;
     MUST  NOT  mix  and match the &amp;quot;.w&amp;quot; with the &amp;quot;.l&amp;quot; with the &amp;quot;.b&amp;quot;!!!   If&lt;br /&gt;
     you are using the &amp;quot;move.b&amp;quot; command to  move data into a bank, then you&lt;br /&gt;
     MUST have a &amp;quot;dc.b&amp;quot; store!!!!!!!!!!&lt;br /&gt;
&lt;br /&gt;
     The same when you are  using  the  banks,  if  you  have used a &amp;quot;dc.b&amp;quot;&lt;br /&gt;
     store,  then you must using the  &amp;quot;move.b&amp;quot;  (or whatever)to use what is&lt;br /&gt;
     in the store correctly!&lt;br /&gt;
&lt;br /&gt;
     I hope I have explained this  so  it  is  easy to understand, it  is a&lt;br /&gt;
     very  easy concept which MUST be obeyed!!&lt;br /&gt;
&lt;br /&gt;
     So, if you have understood this, then you  can see what it can be used&lt;br /&gt;
     for  in say  an  intro...you  can  save  the  contents  of  the colour&lt;br /&gt;
     registers into sixteen banks  and  then  restore  then,  by moving the&lt;br /&gt;
     contents of each store  into their respective colour registers......oh&lt;br /&gt;
     god, this is getting complicated!!!!!!!!&lt;br /&gt;
&lt;br /&gt;
     There is a far easier way  of  does  this, though........you can use a&lt;br /&gt;
     &amp;quot;movem.l&amp;quot; command!!!  For example:-&lt;br /&gt;
&lt;br /&gt;
     If you wanted to store and  restore  the  ST  palette, you would do it&lt;br /&gt;
     like this:-&lt;br /&gt;
&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
        program start - for example SUPERVISOR MODE&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
&lt;br /&gt;
        movem.l    $ffff8240,d0-d7&lt;br /&gt;
        movem.l    d0-d7,sts_colour_bank&lt;br /&gt;
&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
        program end - for example clr.l -(sp) ... trap #1&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
&lt;br /&gt;
       sts_colour_bank      dc.l     16&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     Now, you should be  able  to  see  you  this works instantly........it&lt;br /&gt;
     simple moves the sixteen colour datas into the register d0-d7 and then&lt;br /&gt;
     moves  the  contents of d0-d7 into  the  bank, which  can  hold  up to&lt;br /&gt;
     sixteen  different  data  bits, sts_colour_bank.  You can then restore&lt;br /&gt;
     the palette with the following routine:-&lt;br /&gt;
&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
        program start - for example SUPERVISOR MODE&lt;br /&gt;
        =============------------------------------&lt;br /&gt;
&lt;br /&gt;
        movem.l    sts_colour_bank,d0-d7&lt;br /&gt;
        movem.l    d0-d7,$ffff8240&lt;br /&gt;
&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
        program end - for example clr.l -(sp) ... trap #1&lt;br /&gt;
        ===========--------------------------------------&lt;br /&gt;
&lt;br /&gt;
       sts_colour_bank      dc.l     16&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     See, it is very easy!!   You  can  then  use this routine to store any&lt;br /&gt;
     value you want, for example, the  vbl  values and mfg values......no I&lt;br /&gt;
     will  not  explain  these,  yet....I  do  not  fully  understand  them&lt;br /&gt;
     myself!!!&lt;br /&gt;
&lt;br /&gt;
     Anyway, I think that is enough for this  part, as there is quite a lot&lt;br /&gt;
     here to get to grips  with!!    You  must  try  these routines out for&lt;br /&gt;
     yourself and mess around with them to  see  what you can do!! Have fun&lt;br /&gt;
     and good luck!&lt;br /&gt;
&lt;br /&gt;
     It is a very good  idea  to  get  a  reset  resident version of Devpac&lt;br /&gt;
     too!!!!!!&lt;br /&gt;
&lt;br /&gt;
     ----------------------------------------------------------------------&lt;br /&gt;
     Tronic of Effect, aka John Cove,  [C]opyright 1995 ... started: 04-11-&lt;br /&gt;
     1995  finished: 05-11-1995&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            &amp;quot;I reserve the right to publish these tutorial series&lt;br /&gt;
             wherever  I  choose...   Only,  with express written&lt;br /&gt;
             confirmation,  is  this  to  be  published by anyone&lt;br /&gt;
             other than myself.   These  series  were written for&lt;br /&gt;
             ST WORLD, but if I feel that the series is not being&lt;br /&gt;
             taken advantage of in the way that most ST USERS are&lt;br /&gt;
             able  to read  the  series, then  I will publish the&lt;br /&gt;
             series in my own, and other  peoples, disk magazines&lt;br /&gt;
             and products.&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back to [[Programming]]&lt;/div&gt;</summary>
		<author><name>&gt;Zorro 2</name></author>
	</entry>
</feed>