<?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%3ADumping_the_data_of_the_lower_rom</id>
	<title>Programming:Dumping the data of the lower rom - 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%3ADumping_the_data_of_the_lower_rom"/>
	<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dumping_the_data_of_the_lower_rom&amp;action=history"/>
	<updated>2026-09-03T22:38:45Z</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:Dumping_the_data_of_the_lower_rom&amp;diff=35575&amp;oldid=prev</id>
		<title>CPCLER at 20:38, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dumping_the_data_of_the_lower_rom&amp;diff=35575&amp;oldid=prev"/>
		<updated>2007-03-13T20:38:49Z</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:38, 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-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&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;.rom_data equ $+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;.rom_data equ $+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;&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:Dumping_the_data_of_the_lower_rom&amp;diff=35574&amp;oldid=prev</id>
		<title>CPCLER at 07:37, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dumping_the_data_of_the_lower_rom&amp;diff=35574&amp;oldid=prev"/>
		<updated>2007-03-13T07:37:04Z</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 dump the lower ROM&lt;br /&gt;
;; of an Amstrad CPC or KC Compact computer.&lt;br /&gt;
;;&lt;br /&gt;
;; When active, the lower ROM is readable in the range &amp;amp;0000-&amp;amp;3fff.&lt;br /&gt;
;; The lower ROM contains the operating system and firmware.&lt;br /&gt;
;;&lt;br /&gt;
;; This source is released under the GNU Public License V2.&lt;br /&gt;
&lt;br /&gt;
;; firmware function to activate the lower rom&lt;br /&gt;
.kl_l_rom_enable	equ &amp;amp;b906&lt;br /&gt;
;; firmware function to restore the rom state&lt;br /&gt;
.kl_rom_restore		equ &amp;amp;b90c&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
;; When activated, the lower rom will be readable from &amp;amp;0000-&amp;amp;3fff.&lt;br /&gt;
;; The program will not function if it is in this range.&lt;br /&gt;
org &amp;amp;4000&lt;br /&gt;
&lt;br /&gt;
;;-----------------------------------------&lt;br /&gt;
;; enable the lower (operating system) rom&lt;br /&gt;
;; and store the previous state&lt;br /&gt;
call kl_l_rom_enable&lt;br /&gt;
ld (rom_previous_state),a&lt;br /&gt;
&lt;br /&gt;
;;-----------------------------------------&lt;br /&gt;
;; copy rom data to store&lt;br /&gt;
ld hl,&amp;amp;0000				;; source&lt;br /&gt;
ld de,rom_data			;; dest&lt;br /&gt;
ld bc,&amp;amp;4000				;; length&lt;br /&gt;
ldir&lt;br /&gt;
&lt;br /&gt;
;;-----------------------------------------&lt;br /&gt;
;; restore the previous state&lt;br /&gt;
ld a,(rom_previous_state)&lt;br /&gt;
call kl_rom_restore&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
;;-----------------------------------------&lt;br /&gt;
&lt;br /&gt;
;; stores the previous state of the rom configuration&lt;br /&gt;
.rom_previous_state defb 0&lt;br /&gt;
&lt;br /&gt;
;; a buffer to store the 16k of rom data&lt;br /&gt;
.rom_data equ $+1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>
	</entry>
</feed>