<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amstrad-cpc.net/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://wiki.amstrad-cpc.net/index.php?action=history&amp;feed=atom&amp;title=Programming%3AAn_example_to_define_a_RSX"/>
	<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;action=history"/>
	<updated>2026-09-04T02:00:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35571&amp;oldid=prev</id>
		<title>HAL 6128 at 22:29, 20 April 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35571&amp;oldid=prev"/>
		<updated>2024-04-20T22:29:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&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 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;mw-diff-left-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=&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;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;/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;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;/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;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;/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;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;/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;defb &quot;COMMAND&quot;,&quot;3&quot;+&amp;amp;80      &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;defb &quot;COMMAND&quot;,&quot;3&quot;+&amp;amp;80     &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;commands in ALWAYS in UPPER case, otherwise you&#039;ll get errors&lt;/ins&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;&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;defb 0                     ;end of name table marker&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;defb 0                     ;end of name table marker&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HAL 6128</name></author>
	</entry>
	<entry>
		<id>https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35570&amp;oldid=prev</id>
		<title>CPCLER at 20:35, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35570&amp;oldid=prev"/>
		<updated>2007-03-13T20:35:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&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 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;mw-diff-left-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=&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;ret&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;ret&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;&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 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:Programming]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>CPCLER</name></author>
	</entry>
	<entry>
		<id>https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35569&amp;oldid=prev</id>
		<title>CPCLER at 07:34, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:An_example_to_define_a_RSX&amp;diff=35569&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 &amp;#039;|&amp;#039; 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&amp;#039;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&amp;#039;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>