<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://oldwiki.cpcwiki.eu/index.php?action=history&amp;feed=atom&amp;title=Programming%3AAn_example_to_define_a_RSX</id>
		<title>Programming:An example to define a RSX - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://oldwiki.cpcwiki.eu/index.php?action=history&amp;feed=atom&amp;title=Programming%3AAn_example_to_define_a_RSX"/>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;action=history"/>
		<updated>2026-08-28T12:34:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=115591&amp;oldid=prev</id>
		<title>HAL 6128 at 22:29, 20 April 2024</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=115591&amp;oldid=prev"/>
				<updated>2024-04-20T22:29:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:29, 20 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L56&quot; &gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;1&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  ;the last letter of each RSX name must have bit 7 set to 1.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;1&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  ;the last letter of each RSX name must have bit 7 set to 1.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;2&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  ;This is used by the Kernel to identify the end of the name.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;2&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  ;This is used by the Kernel to identify the end of the name.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;3&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;defb &amp;quot;COMMAND&amp;quot;,&amp;quot;3&amp;quot;+&amp;amp;80&amp;#160; &amp;#160;  &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;;commands in ALWAYS in UPPER case, otherwise you'll get errors&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb 0&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  ;end of name table marker&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb 0&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  ;end of name table marker&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:version:1.11a:oldid:15014:newid:115591 --&gt;
&lt;/table&gt;</summary>
		<author><name>HAL 6128</name></author>	</entry>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=15014&amp;oldid=prev</id>
		<title>CPCLER at 20:35, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=15014&amp;oldid=prev"/>
				<updated>2007-03-13T20:35:21Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:35, 13 March 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L71&quot; &gt;Line 71:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ret&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ret&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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 colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;!-- diff cache key wikidb:diff:version:1.11a:oldid:14914:newid:15014 --&gt;
&lt;/table&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=14914&amp;oldid=prev</id>
		<title>CPCLER at 07:34, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=14914&amp;oldid=prev"/>
				<updated>2007-03-13T07:34:49Z</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;
;; This program provides the framework for the installation of a Resident System&lt;br /&gt;
;; Extension (an RSX).&lt;br /&gt;
;; &lt;br /&gt;
;; An RSX is a command which is accessed from basic by prexifing the command&lt;br /&gt;
;; with the '|' symbol.&lt;br /&gt;
;;&lt;br /&gt;
;; e.g. An RSX could provide a &amp;quot;MEMEDIT&amp;quot; command, which allows the user&lt;br /&gt;
;; to edit the RAM contents. It would be accessed from BASIC by typing:&lt;br /&gt;
;;&lt;br /&gt;
;; |MEMEDIT&lt;br /&gt;
;;&lt;br /&gt;
;; This program shows how an RSX is set up. You are free to use this &lt;br /&gt;
;; example code to create your own RSX's.&lt;br /&gt;
;;&lt;br /&gt;
;; Kevin Thacker 1993&lt;br /&gt;
&lt;br /&gt;
.kl_log_ext equ &amp;amp;bcd1&lt;br /&gt;
&lt;br /&gt;
;; this can be any address in the range &amp;amp;0040-&amp;amp;a7ff.&lt;br /&gt;
org &amp;amp;8000&lt;br /&gt;
&lt;br /&gt;
;;-------------------------------------------------------------------------------&lt;br /&gt;
;; install RSX&lt;br /&gt;
&lt;br /&gt;
ld hl,work_space		;;address of a 4 byte workspace useable by Kernel&lt;br /&gt;
ld bc,jump_table		;;address of command name table and routine handlers&lt;br /&gt;
jp kl_log_ext		;;Install RSX's&lt;br /&gt;
&lt;br /&gt;
.work_space                ;Space for kernel to use&lt;br /&gt;
defs 4&lt;br /&gt;
&lt;br /&gt;
;;-------------------------------------------------------------------------------&lt;br /&gt;
;; RSX definition&lt;br /&gt;
&lt;br /&gt;
.jump_table&lt;br /&gt;
defw name_table            ;address pointing to RSX commands &lt;br /&gt;
&lt;br /&gt;
                           ;list of jump commands associated with each command&lt;br /&gt;
                           &lt;br /&gt;
                           ;The name (in the name_table) and jump instruction&lt;br /&gt;
                           ;(in the jump_table), must be in the same&lt;br /&gt;
                           ;order.&lt;br /&gt;
&lt;br /&gt;
                           ;i.e. the first name in the name_table refers to the&lt;br /&gt;
                           ;first jump in the jump_table, and vice versa.&lt;br /&gt;
&lt;br /&gt;
jp RSX_1_routine           ;routine for COMMAND1 RSX&lt;br /&gt;
jp RSX_2_routine           ;routine for COMMAND2 RSX&lt;br /&gt;
jp RSX_3_routine           ;routine for COMMAND3 RSX&lt;br /&gt;
&lt;br /&gt;
;; the table of RSX function names&lt;br /&gt;
;; the names must be in capitals.&lt;br /&gt;
&lt;br /&gt;
.name_table&lt;br /&gt;
defb &amp;quot;COMMAND&amp;quot;,&amp;quot;1&amp;quot;+&amp;amp;80     ;the last letter of each RSX name must have bit 7 set to 1.&lt;br /&gt;
defb &amp;quot;COMMAND&amp;quot;,&amp;quot;2&amp;quot;+&amp;amp;80     ;This is used by the Kernel to identify the end of the name.&lt;br /&gt;
defb &amp;quot;COMMAND&amp;quot;,&amp;quot;3&amp;quot;+&amp;amp;80     &lt;br /&gt;
&lt;br /&gt;
defb 0                     ;end of name table marker&lt;br /&gt;
&lt;br /&gt;
; Code for the example RSXs&lt;br /&gt;
&lt;br /&gt;
.RSX_1_routine&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
.RSX_2_routine&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
.RSX_3_routine&lt;br /&gt;
ret&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	</feed>