<?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%3AExecuting_firmware_functions_from_within_CP%2FM_plus</id>
	<title>Programming:Executing firmware functions from within CP/M plus - 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%3AExecuting_firmware_functions_from_within_CP%2FM_plus"/>
	<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Executing_firmware_functions_from_within_CP/M_plus&amp;action=history"/>
	<updated>2026-09-04T06:35:39Z</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:Executing_firmware_functions_from_within_CP/M_plus&amp;diff=35605&amp;oldid=prev</id>
		<title>CPCLER at 20:43, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Executing_firmware_functions_from_within_CP/M_plus&amp;diff=35605&amp;oldid=prev"/>
		<updated>2007-03-13T20:43:28Z</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:43, 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-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&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;Hello World!&amp;quot;,0&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;Hello World!&amp;quot;,0&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:Executing_firmware_functions_from_within_CP/M_plus&amp;diff=35604&amp;oldid=prev</id>
		<title>CPCLER at 08:00, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Executing_firmware_functions_from_within_CP/M_plus&amp;diff=35604&amp;oldid=prev"/>
		<updated>2007-03-13T08:00:02Z</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 example shows how to access the firmware from within CP/M+.&lt;br /&gt;
;; This example does not work with CP/M2.2&lt;br /&gt;
;;&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
org &amp;amp;100							;; origin for C/PM .COM programs&lt;br /&gt;
nolist&lt;br /&gt;
write&amp;quot;test2.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
.scr_set_mode equ &amp;amp;bc0e&lt;br /&gt;
.txt_output equ &amp;amp;bb5a&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
;; get address of routine to call to execute&lt;br /&gt;
;; a firmware function&lt;br /&gt;
&lt;br /&gt;
ld hl,(&amp;amp;0001)&lt;br /&gt;
ld de,&amp;amp;0057&lt;br /&gt;
add hl,de&lt;br /&gt;
ld (firm_jump+1),hl&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
;; change the display mode to mode 1&lt;br /&gt;
ld a,1&lt;br /&gt;
call firm_jump&lt;br /&gt;
defw scr_set_mode&lt;br /&gt;
&lt;br /&gt;
;; display a message on the screen&lt;br /&gt;
ld hl,test_message&lt;br /&gt;
call display_message&lt;br /&gt;
&lt;br /&gt;
;; quit back to command-line&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
;; HL = pointer to null terminated message&lt;br /&gt;
.display_message&lt;br /&gt;
ld a,(hl)				;; get ASCII character&lt;br /&gt;
inc hl					;; increment pointer for next character&lt;br /&gt;
or a					;; end of message marker (0)?&lt;br /&gt;
ret z					;; quit if end of message marker found.&lt;br /&gt;
&lt;br /&gt;
call display_char		;; send character to console output&lt;br /&gt;
jp display_message		;; loop for next char&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
.display_char&lt;br /&gt;
call firm_jump&lt;br /&gt;
defw txt_output			;; firmware function: TXT OUTPUT&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
;; execute a firmware function&lt;br /&gt;
.firm_jump&lt;br /&gt;
jp 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;---------------------------------------------------------&lt;br /&gt;
.test_message&lt;br /&gt;
defb &amp;quot;Hello World!&amp;quot;,0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>
	</entry>
</feed>