<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[esxDOS BBS — OPEN # and CLOSE # support for sequential file access]]></title>
	<link rel="self" href="https://board.esxdos.org/extern.php?action=feed&amp;tid=551&amp;type=atom" />
	<updated>2019-09-27T18:25:58Z</updated>
	<generator>PunBB</generator>
	<id>https://board.esxdos.org/viewtopic.php?id=551</id>
		<entry>
			<title type="html"><![CDATA[Re: OPEN # and CLOSE # support for sequential file access]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=1378#p1378" />
			<content type="html"><![CDATA[<p>I implemented this funcitonality as dot commands. Of course, it would be still hugely beneficial to have a native implementation, but this is a good stop-gap measure.<br />See open.asm and close.asm</p><p><a href="https://github.com/nagydani/dot-commands/">https://github.com/nagydani/dot-commands/</a></p>]]></content>
			<author>
				<name><![CDATA[nagydani]]></name>
				<uri>https://board.esxdos.org/profile.php?id=433</uri>
			</author>
			<updated>2019-09-27T18:25:58Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=1378#p1378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OPEN # and CLOSE # support for sequential file access]]></title>
			<link rel="alternate" href="https://board.esxdos.org/viewtopic.php?pid=1373#p1373" />
			<content type="html"><![CDATA[<p>Hi,<br />I was a bit shocked to discover that there is no way to use the Spectrum&#039;s native stream API for esxDOS files. With RST 8 hooked anyway, the implementation is pretty straightforward, should be done very similarly to ZX Interface 1, by checking if OPEN # threw a </p><div class="codebox"><pre><code>F Invalid file name</code></pre></div><p> exception and catching it. CLOSE # is a bit trickier, as the original 48k ROM is buggy. So you can do what +D and DISCIPLE did with CLOSE #* (I&#039;d suggest CLOSE ## instead not to confuse wiht * being the current drive in esxDOS), but just to be nice with projects like ZX85, you can also catch a </p><div class="codebox"><pre><code>J Invalid I/O device</code></pre></div><p> exception from CLOSE # so that fixed ROMs can use the regular syntax.</p><p>If you give me access to esxDOS sources, I can code it up for you. For free. I&#039;d really hate wasting time reverse-engineering esxDOS and binary-patching it.</p>]]></content>
			<author>
				<name><![CDATA[nagydani]]></name>
				<uri>https://board.esxdos.org/profile.php?id=433</uri>
			</author>
			<updated>2019-09-26T10:18:31Z</updated>
			<id>https://board.esxdos.org/viewtopic.php?pid=1373#p1373</id>
		</entry>
</feed>
