<?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%3ADump_of_CPC_Plus_Cartridge</id>
	<title>Programming:Dump of CPC Plus Cartridge - 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%3ADump_of_CPC_Plus_Cartridge"/>
	<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;action=history"/>
	<updated>2026-09-04T02:07:21Z</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:Dump_of_CPC_Plus_Cartridge&amp;diff=35477&amp;oldid=prev</id>
		<title>CPCLER: Dump of CPC Plus Cartridge moved to Programming:Dump of CPC Plus Cartridge</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35477&amp;oldid=prev"/>
		<updated>2007-03-12T15:42:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/Dump_of_CPC_Plus_Cartridge&quot; class=&quot;mw-redirect&quot; title=&quot;Dump of CPC Plus Cartridge&quot;&gt;Dump of CPC Plus Cartridge&lt;/a&gt; moved to &lt;a href=&quot;/wiki/Programming:Dump_of_CPC_Plus_Cartridge&quot; title=&quot;Programming:Dump of CPC Plus Cartridge&quot;&gt;Programming:Dump of CPC Plus Cartridge&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:42, 12 March 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&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:Dump_of_CPC_Plus_Cartridge&amp;diff=35476&amp;oldid=prev</id>
		<title>Octoate: Added new category - CPC Plus</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35476&amp;oldid=prev"/>
		<updated>2007-03-11T21:41:31Z</updated>

		<summary type="html">&lt;p&gt;Added new category - CPC Plus&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 21:41, 11 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-l133&quot;&gt;Line 133:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 133:&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;[[Category:Programming]]&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;[[Category:Programming]]&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:CPC Plus]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Octoate</name></author>
	</entry>
	<entry>
		<id>https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35475&amp;oldid=prev</id>
		<title>CPCLER at 14:22, 11 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35475&amp;oldid=prev"/>
		<updated>2007-03-11T14:22:18Z</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 14:22, 11 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-l131&quot;&gt;Line 131:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 131:&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;.two_k_buffer 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;.two_k_buffer 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:Dump_of_CPC_Plus_Cartridge&amp;diff=35474&amp;oldid=prev</id>
		<title>CPCLER at 14:21, 11 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35474&amp;oldid=prev"/>
		<updated>2007-03-11T14:21:20Z</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 14:21, 11 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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;From the &#039;&#039;&#039;The Unofficial Amstrad WWW Resource&#039;&#039;&#039;:&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;&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;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;div&gt;;; This program will dump the CPC+ System cartridge.&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;;; This program will dump the CPC+ System cartridge.&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:Dump_of_CPC_Plus_Cartridge&amp;diff=35473&amp;oldid=prev</id>
		<title>CPCLER at 14:20, 11 March 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.amstrad-cpc.net/index.php?title=Programming:Dump_of_CPC_Plus_Cartridge&amp;diff=35473&amp;oldid=prev"/>
		<updated>2007-03-11T14:20:42Z</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 will dump the CPC+ System cartridge.&lt;br /&gt;
;;&lt;br /&gt;
;; This program will save 8 files.&lt;br /&gt;
;; CARTROM1.BIN, CARTROM2.BIN, CARTROM3.BIN, CARTROM4.BIN,&lt;br /&gt;
;; CARTROM5.BIN, CARTROM6.BIN, CARTROM7.BIN and CARTROM8.BIN&lt;br /&gt;
;; &lt;br /&gt;
;; Each file will be 16K. The total data will be 128K.&lt;br /&gt;
;; &lt;br /&gt;
;; The files should be joined together into a single binary file to&lt;br /&gt;
;; create the complete ROM image. Join the files in numeric order:&lt;br /&gt;
;; e.g. CARTROM1.BIN+CARTROM2.BIN+CARTROM3.BIN+...+CARTROM8.BIN&lt;br /&gt;
;; &lt;br /&gt;
;; This final binary file can be converted to a .CPR cartridge file for use&lt;br /&gt;
;; with emulators using the BUILDCPR utility.&lt;br /&gt;
;;&lt;br /&gt;
;; Kev Thacker, 1997-2002&lt;br /&gt;
;; &lt;br /&gt;
;; This source is released under the GNU public license.&lt;br /&gt;
&lt;br /&gt;
;; firmware function to enable upper rom (rom will be readable in range &amp;amp;c000-&amp;amp;ffff)&lt;br /&gt;
.kl_u_rom_enable	equ &amp;amp;b900&lt;br /&gt;
;; firmware function to disable upper rom (rom data can&amp;#039;t be read)&lt;br /&gt;
.kl_u_rom_disable equ &amp;amp;b903&lt;br /&gt;
&lt;br /&gt;
;; firmware function to open a file for output&lt;br /&gt;
.cas_out_open	equ &amp;amp;bc8c&lt;br /&gt;
;; firmware function to write a block of data to a file&lt;br /&gt;
.cas_out_direct	equ &amp;amp;bc98&lt;br /&gt;
;; firmware function to close a file opened for output&lt;br /&gt;
.cas_out_close	equ &amp;amp;bc8f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;; NOTE: ROM Data from &amp;amp;4000-&amp;amp;7FFF. Program code starts at &amp;amp;8000.&lt;br /&gt;
;; Upper ROM can be read in range &amp;amp;c000-&amp;amp;ffff (when activated).&lt;br /&gt;
;; Firmware area between &amp;amp;A600 (approximatly; depends on ROMs connected) to &amp;amp;bfff.&lt;br /&gt;
;; Lower firmware area between &amp;amp;0000-&amp;amp;0040. &lt;br /&gt;
&lt;br /&gt;
org &amp;amp;8000&lt;br /&gt;
nolist&lt;br /&gt;
&lt;br /&gt;
.save_cart&lt;br /&gt;
;; There are 8 x 16K blocks in the system cartridge.&lt;br /&gt;
ld b,8&lt;br /&gt;
&lt;br /&gt;
;; ROM&amp;#039;s with ID&amp;#039;s of 128-255 will select a 16K block in the cartridge ROM&lt;br /&gt;
;; if a cartridge is less than 512K, then more than one ID will select the same&lt;br /&gt;
;; 16K block of the cartridge ROM. e.g. if the cartridge is 128K, then selections&lt;br /&gt;
;; 128 and 136 will select the same 16K block.&lt;br /&gt;
&lt;br /&gt;
ld e,&amp;amp;80&lt;br /&gt;
&lt;br /&gt;
.save_loop&lt;br /&gt;
push bc&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------------&lt;br /&gt;
;; disable interrupts - will stop firmware from enabling any roms&lt;br /&gt;
di&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------------&lt;br /&gt;
;; STAGE 1: Select the rom&lt;br /&gt;
ld c,e&lt;br /&gt;
ld b,&amp;amp;df&lt;br /&gt;
out (c),c&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------------&lt;br /&gt;
;; STAGE 2: enable rom (rom data now readable in range &amp;amp;c000-&amp;amp;ffff&lt;br /&gt;
&lt;br /&gt;
;; enable upper rom&lt;br /&gt;
call kl_u_rom_enable&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------------&lt;br /&gt;
;; STAGE 3: copy rom data to ram&lt;br /&gt;
&lt;br /&gt;
;; copy rom data to ram&lt;br /&gt;
;; (the firmware will enable the DOS rom in the range &amp;amp;c000-&amp;amp;ffff to write&lt;br /&gt;
;; the file; therefore we can&amp;#039;t keep the rom enabled while reading/writing to&lt;br /&gt;
;; disc)&lt;br /&gt;
ld hl,&amp;amp;c000&lt;br /&gt;
ld de,&amp;amp;4000&lt;br /&gt;
ld bc,&amp;amp;4000&lt;br /&gt;
ldir&lt;br /&gt;
&lt;br /&gt;
;; disable upper rom&lt;br /&gt;
call kl_u_rom_disable&lt;br /&gt;
&lt;br /&gt;
;; save rom data&lt;br /&gt;
call save_file&lt;br /&gt;
&lt;br /&gt;
inc de&lt;br /&gt;
pop bc&lt;br /&gt;
djnz save_loop&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
.save_file&lt;br /&gt;
push hl&lt;br /&gt;
push de&lt;br /&gt;
&lt;br /&gt;
ld hl,end_filename-1		;; update digit in filename&lt;br /&gt;
inc (hl)&lt;br /&gt;
&lt;br /&gt;
ld b,end_filename-filename	;; B = length of filename&lt;br /&gt;
ld hl,filename			;; HL = address of filename&lt;br /&gt;
ld de,two_k_buffer		;; DE = address of 2k buffer (not used&lt;br /&gt;
					;; with cas_out_direct)&lt;br /&gt;
&lt;br /&gt;
call cas_out_open			;; firmware function: open output file&lt;br /&gt;
pop de&lt;br /&gt;
pop hl&lt;br /&gt;
					;; HL = start address&lt;br /&gt;
					;; DE = length&lt;br /&gt;
					;; BC = execution address&lt;br /&gt;
ld bc,0&lt;br /&gt;
ld a,2				;; binary file&lt;br /&gt;
call cas_out_direct		;; firmware function: write a entire block&lt;br /&gt;
&lt;br /&gt;
call cas_out_close		;; firmware function: close output file&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
;; the initial filename, this is updated for &lt;br /&gt;
;; each file saved&lt;br /&gt;
.filename&lt;br /&gt;
defb &amp;quot;CARTROM0&amp;quot;&lt;br /&gt;
.end_filename&lt;br /&gt;
&lt;br /&gt;
.two_k_buffer equ $+1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>
	</entry>
</feed>